@gobob/bob-sdk 3.3.2 → 3.3.4-alpha
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/dist/esplora.d.ts +1 -1
- package/dist/esplora.js +3 -3
- package/dist/esplora.js.map +1 -1
- package/dist/gateway/abi.d.ts +100 -105
- package/dist/gateway/abi.js +6 -6
- package/dist/gateway/abi.js.map +1 -1
- package/dist/gateway/client.d.ts +7320 -7875
- package/dist/gateway/client.js +154 -93
- package/dist/gateway/client.js.map +1 -1
- package/dist/gateway/index.d.ts +1 -1
- package/dist/gateway/strategy.js +9 -6
- package/dist/gateway/strategy.js.map +1 -1
- package/dist/gateway/tokens.d.ts +1 -0
- package/dist/gateway/tokens.js +29 -0
- package/dist/gateway/tokens.js.map +1 -1
- package/dist/gateway/types.d.ts +38 -21
- package/dist/gateway/types.js.map +1 -1
- package/dist/inscription.js +1 -1
- package/dist/inscription.js.map +1 -1
- package/dist/mempool.d.ts +56 -3
- package/dist/mempool.js +43 -5
- package/dist/mempool.js.map +1 -1
- package/dist/ordinal-api/index.d.ts +1 -0
- package/dist/ordinal-api/index.js.map +1 -1
- package/dist/ordinals/commit.js +2 -2
- package/dist/ordinals/commit.js.map +1 -1
- package/dist/ordinals/index.js +1 -1
- package/dist/ordinals/index.js.map +1 -1
- package/dist/runes.d.ts +1 -1
- package/dist/wallet/utxo.d.ts +1 -1
- package/dist/wallet/utxo.js +4 -1
- package/dist/wallet/utxo.js.map +1 -1
- package/package.json +8 -8
package/dist/esplora.d.ts
CHANGED
|
@@ -73,7 +73,7 @@ export type ConfirmationTarget = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 1
|
|
|
73
73
|
export type EsploraFeeEstimates = Record<ConfirmationTarget, number>;
|
|
74
74
|
export declare class EsploraClient {
|
|
75
75
|
private basePath;
|
|
76
|
-
constructor(
|
|
76
|
+
constructor(chainName?: 'mainnet' | 'signet' | 'testnet' | 'regtest');
|
|
77
77
|
getLatestHeight(): Promise<number>;
|
|
78
78
|
getBlock(blockHash: string): Promise<Block>;
|
|
79
79
|
getBlockHash(height: number): Promise<string>;
|
package/dist/esplora.js
CHANGED
|
@@ -9,8 +9,8 @@ function encodeEsploraMerkleProof(merkle) {
|
|
|
9
9
|
return merkle.map((item) => Buffer.from(item, 'hex').reverse().toString('hex')).join('');
|
|
10
10
|
}
|
|
11
11
|
class EsploraClient {
|
|
12
|
-
constructor(
|
|
13
|
-
switch (
|
|
12
|
+
constructor(chainName = 'mainnet') {
|
|
13
|
+
switch (chainName) {
|
|
14
14
|
case 'mainnet':
|
|
15
15
|
this.basePath = exports.MAINNET_ESPLORA_BASE_PATH;
|
|
16
16
|
break;
|
|
@@ -24,7 +24,7 @@ class EsploraClient {
|
|
|
24
24
|
this.basePath = exports.REGTEST_ESPLORA_BASE_PATH;
|
|
25
25
|
break;
|
|
26
26
|
default:
|
|
27
|
-
|
|
27
|
+
throw new Error('Invalid chain');
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
async getLatestHeight() {
|
package/dist/esplora.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"esplora.js","sourceRoot":"","sources":["../src/esplora.ts"],"names":[],"mappings":";;;AAIa,QAAA,yBAAyB,GAAG,+BAA+B,CAAC;AAK5D,QAAA,yBAAyB,GAAG,+BAA+B,CAAC;AAK5D,QAAA,yBAAyB,GAAG,uBAAuB,CAAC;AAKpD,QAAA,wBAAwB,GAAG,8BAA8B,CAAC;AA4HvE,SAAS,wBAAwB,CAAC,MAAgB;IAE9C,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC7F,CAAC;AAOD,MAAa,aAAa;IA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ayable";
|
|
28
28
|
}];
|
|
29
|
-
export declare const offrampCaller: {
|
|
30
|
-
readonly
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
readonly
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
readonly
|
|
38
|
-
readonly name: "satAmountToLock";
|
|
39
|
-
readonly type: "uint256";
|
|
40
|
-
readonly internalType: "uint256";
|
|
41
|
-
}, {
|
|
42
|
-
readonly name: "satFeesMax";
|
|
43
|
-
readonly type: "uint256";
|
|
44
|
-
readonly internalType: "uint256";
|
|
45
|
-
}, {
|
|
46
|
-
readonly name: "orderCreationDeadline";
|
|
47
|
-
readonly type: "uint256";
|
|
48
|
-
readonly internalType: "uint256";
|
|
49
|
-
}, {
|
|
50
|
-
readonly name: "outputScript";
|
|
51
|
-
readonly type: "bytes";
|
|
52
|
-
readonly internalType: "bytes";
|
|
53
|
-
}, {
|
|
54
|
-
readonly name: "token";
|
|
55
|
-
readonly type: "address";
|
|
56
|
-
readonly internalType: "address";
|
|
57
|
-
}, {
|
|
58
|
-
readonly name: "orderOwner";
|
|
59
|
-
readonly type: "address";
|
|
60
|
-
readonly internalType: "address";
|
|
61
|
-
}];
|
|
62
|
-
}];
|
|
63
|
-
readonly outputs: readonly [];
|
|
64
|
-
readonly stateMutability: "nonpayable";
|
|
65
|
-
};
|
|
66
|
-
readonly bumpFeeOfExistingOrder: {
|
|
67
|
-
readonly type: "function";
|
|
68
|
-
readonly name: "bumpFeeOfExistingOrder";
|
|
69
|
-
readonly inputs: readonly [{
|
|
70
|
-
readonly name: "orderId";
|
|
29
|
+
export declare const offrampCaller: readonly [{
|
|
30
|
+
readonly type: "function";
|
|
31
|
+
readonly name: "createOrder";
|
|
32
|
+
readonly inputs: readonly [{
|
|
33
|
+
readonly name: "offrampOrderArgs";
|
|
34
|
+
readonly type: "tuple";
|
|
35
|
+
readonly internalType: "struct OfframpOrderArgs";
|
|
36
|
+
readonly components: readonly [{
|
|
37
|
+
readonly name: "satAmountToLock";
|
|
71
38
|
readonly type: "uint256";
|
|
72
39
|
readonly internalType: "uint256";
|
|
73
40
|
}, {
|
|
74
|
-
readonly name: "
|
|
41
|
+
readonly name: "satFeesMax";
|
|
75
42
|
readonly type: "uint256";
|
|
76
43
|
readonly internalType: "uint256";
|
|
44
|
+
}, {
|
|
45
|
+
readonly name: "orderCreationDeadline";
|
|
46
|
+
readonly type: "uint256";
|
|
47
|
+
readonly internalType: "uint256";
|
|
48
|
+
}, {
|
|
49
|
+
readonly name: "outputScript";
|
|
50
|
+
readonly type: "bytes";
|
|
51
|
+
readonly internalType: "bytes";
|
|
52
|
+
}, {
|
|
53
|
+
readonly name: "token";
|
|
54
|
+
readonly type: "address";
|
|
55
|
+
readonly internalType: "address";
|
|
56
|
+
}, {
|
|
57
|
+
readonly name: "orderOwner";
|
|
58
|
+
readonly type: "address";
|
|
59
|
+
readonly internalType: "address";
|
|
77
60
|
}];
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
61
|
+
}];
|
|
62
|
+
readonly outputs: readonly [];
|
|
63
|
+
readonly stateMutability: "nonpayable";
|
|
64
|
+
}, {
|
|
65
|
+
readonly type: "function";
|
|
66
|
+
readonly name: "bumpFeeOfExistingOrder";
|
|
67
|
+
readonly inputs: readonly [{
|
|
68
|
+
readonly name: "orderId";
|
|
69
|
+
readonly type: "uint256";
|
|
70
|
+
readonly internalType: "uint256";
|
|
71
|
+
}, {
|
|
72
|
+
readonly name: "newFeeSat";
|
|
73
|
+
readonly type: "uint256";
|
|
74
|
+
readonly internalType: "uint256";
|
|
75
|
+
}];
|
|
76
|
+
readonly outputs: readonly [];
|
|
77
|
+
readonly stateMutability: "nonpayable";
|
|
78
|
+
}, {
|
|
79
|
+
readonly type: "function";
|
|
80
|
+
readonly name: "unlockFunds";
|
|
81
|
+
readonly inputs: readonly [{
|
|
82
|
+
readonly name: "orderId";
|
|
83
|
+
readonly type: "uint256";
|
|
84
|
+
readonly internalType: "uint256";
|
|
85
|
+
}, {
|
|
86
|
+
readonly name: "receiver";
|
|
87
|
+
readonly type: "address";
|
|
88
|
+
readonly internalType: "address";
|
|
89
|
+
}];
|
|
90
|
+
readonly outputs: readonly [];
|
|
91
|
+
readonly stateMutability: "nonpayable";
|
|
92
|
+
}, {
|
|
93
|
+
readonly type: "function";
|
|
94
|
+
readonly name: "getOfframpOrder";
|
|
95
|
+
readonly inputs: readonly [{
|
|
96
|
+
readonly name: "orderId";
|
|
97
|
+
readonly type: "uint256";
|
|
98
|
+
readonly internalType: "uint256";
|
|
99
|
+
}];
|
|
100
|
+
readonly outputs: readonly [{
|
|
101
|
+
readonly name: "";
|
|
102
|
+
readonly type: "tuple";
|
|
103
|
+
readonly internalType: "struct OfframpOrderDetails";
|
|
104
|
+
readonly components: readonly [{
|
|
105
|
+
readonly name: "satAmountLocked";
|
|
106
|
+
readonly type: "uint256";
|
|
107
|
+
readonly internalType: "uint256";
|
|
108
|
+
}, {
|
|
109
|
+
readonly name: "satFeesMax";
|
|
86
110
|
readonly type: "uint256";
|
|
87
111
|
readonly internalType: "uint256";
|
|
112
|
+
}, {
|
|
113
|
+
readonly name: "sender";
|
|
114
|
+
readonly type: "address";
|
|
115
|
+
readonly internalType: "address";
|
|
88
116
|
}, {
|
|
89
117
|
readonly name: "receiver";
|
|
90
118
|
readonly type: "address";
|
|
91
119
|
readonly internalType: "address";
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
120
|
+
}, {
|
|
121
|
+
readonly name: "outputScript";
|
|
122
|
+
readonly type: "bytes";
|
|
123
|
+
readonly internalType: "bytes";
|
|
124
|
+
}, {
|
|
125
|
+
readonly name: "status";
|
|
126
|
+
readonly type: "uint8";
|
|
127
|
+
readonly internalType: "enum OfframpOrderStatus";
|
|
128
|
+
}, {
|
|
129
|
+
readonly name: "timestamp";
|
|
101
130
|
readonly type: "uint256";
|
|
102
131
|
readonly internalType: "uint256";
|
|
132
|
+
}, {
|
|
133
|
+
readonly name: "token";
|
|
134
|
+
readonly type: "address";
|
|
135
|
+
readonly internalType: "address";
|
|
136
|
+
}, {
|
|
137
|
+
readonly name: "owner";
|
|
138
|
+
readonly type: "address";
|
|
139
|
+
readonly internalType: "address";
|
|
103
140
|
}];
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
readonly internalType: "struct OfframpOrderDetails";
|
|
108
|
-
readonly components: readonly [{
|
|
109
|
-
readonly name: "satAmountLocked";
|
|
110
|
-
readonly type: "uint256";
|
|
111
|
-
readonly internalType: "uint256";
|
|
112
|
-
}, {
|
|
113
|
-
readonly name: "satFeesMax";
|
|
114
|
-
readonly type: "uint256";
|
|
115
|
-
readonly internalType: "uint256";
|
|
116
|
-
}, {
|
|
117
|
-
readonly name: "sender";
|
|
118
|
-
readonly type: "address";
|
|
119
|
-
readonly internalType: "address";
|
|
120
|
-
}, {
|
|
121
|
-
readonly name: "receiver";
|
|
122
|
-
readonly type: "address";
|
|
123
|
-
readonly internalType: "address";
|
|
124
|
-
}, {
|
|
125
|
-
readonly name: "outputScript";
|
|
126
|
-
readonly type: "bytes";
|
|
127
|
-
readonly internalType: "bytes";
|
|
128
|
-
}, {
|
|
129
|
-
readonly name: "status";
|
|
130
|
-
readonly type: "uint8";
|
|
131
|
-
readonly internalType: "enum OfframpOrderStatus";
|
|
132
|
-
}, {
|
|
133
|
-
readonly name: "timestamp";
|
|
134
|
-
readonly type: "uint256";
|
|
135
|
-
readonly internalType: "uint256";
|
|
136
|
-
}, {
|
|
137
|
-
readonly name: "token";
|
|
138
|
-
readonly type: "address";
|
|
139
|
-
readonly internalType: "address";
|
|
140
|
-
}, {
|
|
141
|
-
readonly name: "owner";
|
|
142
|
-
readonly type: "address";
|
|
143
|
-
readonly internalType: "address";
|
|
144
|
-
}];
|
|
145
|
-
}];
|
|
146
|
-
readonly stateMutability: "view";
|
|
147
|
-
};
|
|
148
|
-
};
|
|
141
|
+
}];
|
|
142
|
+
readonly stateMutability: "view";
|
|
143
|
+
}];
|
|
149
144
|
export declare const compoundV2CTokenAbi: readonly [{
|
|
150
145
|
readonly name: "exchangeRateCurrent";
|
|
151
146
|
readonly type: "function";
|
package/dist/gateway/abi.js
CHANGED
|
@@ -39,8 +39,8 @@ exports.strategyCaller = [
|
|
|
39
39
|
stateMutability: 'nonpayable',
|
|
40
40
|
},
|
|
41
41
|
];
|
|
42
|
-
exports.offrampCaller =
|
|
43
|
-
|
|
42
|
+
exports.offrampCaller = [
|
|
43
|
+
{
|
|
44
44
|
type: 'function',
|
|
45
45
|
name: 'createOrder',
|
|
46
46
|
inputs: [
|
|
@@ -85,7 +85,7 @@ exports.offrampCaller = {
|
|
|
85
85
|
outputs: [],
|
|
86
86
|
stateMutability: 'nonpayable',
|
|
87
87
|
},
|
|
88
|
-
|
|
88
|
+
{
|
|
89
89
|
type: 'function',
|
|
90
90
|
name: 'bumpFeeOfExistingOrder',
|
|
91
91
|
inputs: [
|
|
@@ -103,7 +103,7 @@ exports.offrampCaller = {
|
|
|
103
103
|
outputs: [],
|
|
104
104
|
stateMutability: 'nonpayable',
|
|
105
105
|
},
|
|
106
|
-
|
|
106
|
+
{
|
|
107
107
|
type: 'function',
|
|
108
108
|
name: 'unlockFunds',
|
|
109
109
|
inputs: [
|
|
@@ -121,7 +121,7 @@ exports.offrampCaller = {
|
|
|
121
121
|
outputs: [],
|
|
122
122
|
stateMutability: 'nonpayable',
|
|
123
123
|
},
|
|
124
|
-
|
|
124
|
+
{
|
|
125
125
|
type: 'function',
|
|
126
126
|
name: 'getOfframpOrder',
|
|
127
127
|
inputs: [
|
|
@@ -151,7 +151,7 @@ exports.offrampCaller = {
|
|
|
151
151
|
],
|
|
152
152
|
stateMutability: 'view',
|
|
153
153
|
},
|
|
154
|
-
|
|
154
|
+
];
|
|
155
155
|
exports.compoundV2CTokenAbi = (0, viem_1.parseAbi)([
|
|
156
156
|
'function exchangeRateCurrent() external returns (uint256)',
|
|
157
157
|
'function underlying() external view returns (address)',
|
package/dist/gateway/abi.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abi.js","sourceRoot":"","sources":["../../src/gateway/abi.ts"],"names":[],"mappings":";;;AAAA,+BAAgC;AAEnB,QAAA,cAAc,GAAG;IAC1B;QACI,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,sCAAsC;QAC5C,MAAM,EAAE;YACJ;gBACI,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,SAAS;gBACf,YAAY,EAAE,iBAAiB;aAClC;YACD;gBACI,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,SAAS;gBACf,YAAY,EAAE,SAAS;aAC1B;YACD;gBACI,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,SAAS;gBACf,YAAY,EAAE,SAAS;aAC1B;YACD;gBACI,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,OAAO;gBACb,YAAY,EAAE,6BAA6B;gBAC3C,UAAU,EAAE;oBACR;wBACI,IAAI,EAAE,cAAc;wBACpB,IAAI,EAAE,SAAS;wBACf,YAAY,EAAE,SAAS;qBAC1B;iBACJ;aACJ;SACJ;QACD,OAAO,EAAE,EAAE;QACX,eAAe,EAAE,YAAY;KAChC;CACK,CAAC;AAEE,QAAA,aAAa,GAAG;IACzB
|
|
1
|
+
{"version":3,"file":"abi.js","sourceRoot":"","sources":["../../src/gateway/abi.ts"],"names":[],"mappings":";;;AAAA,+BAAgC;AAEnB,QAAA,cAAc,GAAG;IAC1B;QACI,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,sCAAsC;QAC5C,MAAM,EAAE;YACJ;gBACI,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,SAAS;gBACf,YAAY,EAAE,iBAAiB;aAClC;YACD;gBACI,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,S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