@verified-network/verified-sdk 1.4.3 → 1.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env +1 -1
- package/dist/contract/custody/index.js +4 -0
- package/package.json +1 -1
package/.env
CHANGED
|
@@ -2,7 +2,7 @@ BUNDLER_URL_FIRST_SECTION="https://bundler.biconomy.io/api/v2"
|
|
|
2
2
|
BUNDLER_URL_SECTION_SECTION="nJPK7B3ru.dd7f7861-190d-41bd-af80-6877f74b8f44"
|
|
3
3
|
GENERAL_PAYMASTER_URL="https://paymaster.biconomy.io/api/v1"
|
|
4
4
|
# 5_PAYMASTER_API_KEY="Al_uud9et.0420c6d3-2343-4fca-9022-c8c8b648444b" //goerli(chainid 5) not working with biconomy
|
|
5
|
-
80001_PAYMASTER_API_KEY="
|
|
5
|
+
80001_PAYMASTER_API_KEY="aoDXoLOsa.b941e672-e98f-4d56-b9f6-733dca59a87e"
|
|
6
6
|
# 5_CASH_TOKEN_ADDRESS="0x07865c6E87B9F70255377e024ace6630C1Eaa37F" //goerli(chainid 5) not workith biconomy
|
|
7
7
|
80001_CASH_TOKEN_ADDRESS="0xda5289fcaaf71d52a80a254da614a192b693e977"
|
|
8
8
|
BICONOMY_REVERT_TOPIC="0x1c4fada7374c0a9ee8841fc38afe82932dc0f8e69012e927f061a8bae611a201"
|
|
@@ -44,6 +44,7 @@ class Custody extends index_1.VerifiedContract {
|
|
|
44
44
|
}
|
|
45
45
|
async getCreator(_creator, _pin, options) {
|
|
46
46
|
await this.validateInput(index_1.DATATYPES.STRING, _creator);
|
|
47
|
+
await this.validateInput(index_1.DATATYPES.NUMBER, _pin);
|
|
47
48
|
return this.callContract(FUNCTIONS.GETCREATOR, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), _pin, options);
|
|
48
49
|
}
|
|
49
50
|
async addParticipant(_creator, _id, _participant, _shard, options) {
|
|
@@ -63,6 +64,7 @@ class Custody extends index_1.VerifiedContract {
|
|
|
63
64
|
await this.validateInput(index_1.DATATYPES.STRING, _creator);
|
|
64
65
|
await this.validateInput(index_1.DATATYPES.STRING, _id);
|
|
65
66
|
await this.validateInput(index_1.DATATYPES.STRING, _participant);
|
|
67
|
+
await this.validateInput(index_1.DATATYPES.NUMBER, _pin);
|
|
66
68
|
return this.callContract(FUNCTIONS.CONFIRMPARTICIPANT, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), _id, this.sanitiseInput(index_1.DATATYPES.BYTE32, _participant), _pin, options);
|
|
67
69
|
}
|
|
68
70
|
async defineQuorum(_creator, _id, _minParticipants, options) {
|
|
@@ -80,6 +82,8 @@ class Custody extends index_1.VerifiedContract {
|
|
|
80
82
|
await this.validateInput(index_1.DATATYPES.STRING, _creator);
|
|
81
83
|
await this.validateInput(index_1.DATATYPES.STRING, _id);
|
|
82
84
|
await this.validateInput(index_1.DATATYPES.STRING, _participant);
|
|
85
|
+
await this.validateInput(index_1.DATATYPES.STRING, _tx);
|
|
86
|
+
await this.validateInput(index_1.DATATYPES.NUMBER, _pin);
|
|
83
87
|
return this.callContract(FUNCTIONS.SIGNTRANSACTION, this.sanitiseInput(index_1.DATATYPES.BYTE32, _creator), _id, this.sanitiseInput(index_1.DATATYPES.BYTE32, _participant), _tx, _pin, options);
|
|
84
88
|
}
|
|
85
89
|
async checkQuorum(_creator, _id, _participant, _txid, options) {
|