Add README.md and LICENSE.md

This commit is contained in:
nitowa
2023-10-08 22:37:54 +02:00
parent 4079865ab6
commit 4317fd2bbb
5 changed files with 166 additions and 7 deletions
+1 -2
View File
@@ -30,7 +30,6 @@ export abstract class RJSVM_Builder {
public readonly config: RJSVM_Config
) {
super()
if(!XRP_ADDRESS.test(this.owner)){
const err = new Error(`Inavlid owner address ${this.owner}`)
@@ -38,7 +37,6 @@ export abstract class RJSVM_Builder {
throw err
}
this.definitions = Object.freeze(defs)
Object.entries(this.definitions).forEach(([k, v]) => {
this[k] = (env: PaymentTx_T, ...args: any) => (v.implementation as ParameterizedFunction).apply(this as any, [env, ...args])
@@ -87,6 +85,7 @@ export abstract class RJSVM_Builder {
}
this.subscribers = {}
this.onceSubscribers = {}
}
public on = (event: string, handler: ParameterizedFunction) => {