@sign-global/tokentable 0.4.1-beta.7 → 0.4.1-beta.8

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.
Files changed (23) hide show
  1. package/dist/cjs/airdrop/contracts/solana/SignatureAirdropService.d.ts +0 -4
  2. package/dist/cjs/airdrop/contracts/solana/SignatureAirdropService.js +0 -16
  3. package/dist/cjs/airdrop/contracts/solana/SignatureAirdropService.js.map +1 -1
  4. package/dist/cjs/airdrop/contracts/solana/SolanaContractClient.js +1 -1
  5. package/dist/cjs/airdrop/contracts/solana/fee_collector.d.ts +20 -71
  6. package/dist/cjs/airdrop/contracts/solana/fee_collector.json +20 -71
  7. package/dist/cjs/airdrop/contracts/solana/fungible_token_distributor_solana.d.ts +64 -77
  8. package/dist/cjs/airdrop/contracts/solana/fungible_token_distributor_solana.json +65 -78
  9. package/dist/esm/airdrop/contracts/solana/SignatureAirdropService.d.ts +0 -4
  10. package/dist/esm/airdrop/contracts/solana/SignatureAirdropService.js +0 -16
  11. package/dist/esm/airdrop/contracts/solana/SignatureAirdropService.js.map +1 -1
  12. package/dist/esm/airdrop/contracts/solana/SolanaContractClient.js +1 -1
  13. package/dist/esm/airdrop/contracts/solana/fee_collector.d.ts +20 -71
  14. package/dist/esm/airdrop/contracts/solana/fee_collector.json +20 -71
  15. package/dist/esm/airdrop/contracts/solana/fungible_token_distributor_solana.d.ts +64 -77
  16. package/dist/esm/airdrop/contracts/solana/fungible_token_distributor_solana.json +65 -78
  17. package/package.json +1 -1
  18. package/src/airdrop/contracts/solana/SignatureAirdropService.ts +0 -20
  19. package/src/airdrop/contracts/solana/SolanaContractClient.ts +1 -1
  20. package/src/airdrop/contracts/solana/fee_collector.json +20 -71
  21. package/src/airdrop/contracts/solana/fee_collector.ts +20 -71
  22. package/src/airdrop/contracts/solana/fungible_token_distributor_solana.json +65 -78
  23. package/src/airdrop/contracts/solana/fungible_token_distributor_solana.ts +65 -78
@@ -86,41 +86,8 @@ export type FungibleTokenDistributorSolana = {
86
86
  "path": "authority";
87
87
  },
88
88
  {
89
- "kind": "const";
90
- "value": [
91
- 6,
92
- 221,
93
- 246,
94
- 225,
95
- 215,
96
- 101,
97
- 161,
98
- 147,
99
- 217,
100
- 203,
101
- 225,
102
- 70,
103
- 206,
104
- 235,
105
- 121,
106
- 172,
107
- 28,
108
- 180,
109
- 133,
110
- 237,
111
- 95,
112
- 91,
113
- 55,
114
- 145,
115
- 58,
116
- 140,
117
- 245,
118
- 133,
119
- 126,
120
- 255,
121
- 0,
122
- 169
123
- ];
89
+ "kind": "account";
90
+ "path": "tokenProgram";
124
91
  },
125
92
  {
126
93
  "kind": "account";
@@ -547,6 +514,50 @@ export type FungibleTokenDistributorSolana = {
547
514
  }
548
515
  ];
549
516
  },
517
+ {
518
+ "name": "receiveProgramAdmin";
519
+ "discriminator": [
520
+ 238,
521
+ 172,
522
+ 61,
523
+ 197,
524
+ 23,
525
+ 72,
526
+ 249,
527
+ 87
528
+ ];
529
+ "accounts": [
530
+ {
531
+ "name": "config";
532
+ "writable": true;
533
+ "pda": {
534
+ "seeds": [
535
+ {
536
+ "kind": "const";
537
+ "value": [
538
+ 99,
539
+ 111,
540
+ 110,
541
+ 102,
542
+ 105,
543
+ 103
544
+ ];
545
+ }
546
+ ];
547
+ };
548
+ },
549
+ {
550
+ "name": "authority";
551
+ "writable": true;
552
+ "signer": true;
553
+ },
554
+ {
555
+ "name": "systemProgram";
556
+ "address": "11111111111111111111111111111111";
557
+ }
558
+ ];
559
+ "args": [];
560
+ },
550
561
  {
551
562
  "name": "setBaseParams";
552
563
  "discriminator": [
@@ -883,11 +894,6 @@ export type FungibleTokenDistributorSolana = {
883
894
  "writable": true;
884
895
  "signer": true;
885
896
  },
886
- {
887
- "name": "newOwner";
888
- "writable": true;
889
- "signer": true;
890
- },
891
897
  {
892
898
  "name": "systemProgram";
893
899
  "address": "11111111111111111111111111111111";
@@ -945,6 +951,7 @@ export type FungibleTokenDistributorSolana = {
945
951
  "name": "newAdmin";
946
952
  "writable": true;
947
953
  "signer": true;
954
+ "optional": true;
948
955
  },
949
956
  {
950
957
  "name": "systemProgram";
@@ -1129,41 +1136,8 @@ export type FungibleTokenDistributorSolana = {
1129
1136
  "path": "authority";
1130
1137
  },
1131
1138
  {
1132
- "kind": "const";
1133
- "value": [
1134
- 6,
1135
- 221,
1136
- 246,
1137
- 225,
1138
- 215,
1139
- 101,
1140
- 161,
1141
- 147,
1142
- 217,
1143
- 203,
1144
- 225,
1145
- 70,
1146
- 206,
1147
- 235,
1148
- 121,
1149
- 172,
1150
- 28,
1151
- 180,
1152
- 133,
1153
- 237,
1154
- 95,
1155
- 91,
1156
- 55,
1157
- 145,
1158
- 58,
1159
- 140,
1160
- 245,
1161
- 133,
1162
- 126,
1163
- 255,
1164
- 0,
1165
- 169
1166
- ];
1139
+ "kind": "account";
1140
+ "path": "tokenProgram";
1167
1141
  },
1168
1142
  {
1169
1143
  "kind": "account";
@@ -1401,16 +1375,21 @@ export type FungibleTokenDistributorSolana = {
1401
1375
  },
1402
1376
  {
1403
1377
  "code": 6009;
1378
+ "name": "notPermissioned";
1379
+ "msg": "notPermissioned";
1380
+ },
1381
+ {
1382
+ "code": 6010;
1404
1383
  "name": "ownableUnauthorizedAccount";
1405
1384
  "msg": "ownableUnauthorizedAccount";
1406
1385
  },
1407
1386
  {
1408
- "code": 6010;
1387
+ "code": 6011;
1409
1388
  "name": "invalidFeeCollector";
1410
1389
  "msg": "invalidFeeCollector";
1411
1390
  },
1412
1391
  {
1413
- "code": 6011;
1392
+ "code": 6012;
1414
1393
  "name": "paused";
1415
1394
  "msg": "paused";
1416
1395
  }
@@ -1517,6 +1496,10 @@ export type FungibleTokenDistributorSolana = {
1517
1496
  {
1518
1497
  "name": "admin";
1519
1498
  "type": "pubkey";
1499
+ },
1500
+ {
1501
+ "name": "newAdmin";
1502
+ "type": "pubkey";
1520
1503
  }
1521
1504
  ];
1522
1505
  };
@@ -1537,6 +1520,10 @@ export type FungibleTokenDistributorSolana = {
1537
1520
  "name": "owner";
1538
1521
  "type": "pubkey";
1539
1522
  },
1523
+ {
1524
+ "name": "newOwner";
1525
+ "type": "pubkey";
1526
+ },
1540
1527
  {
1541
1528
  "name": "defaultFeesBips";
1542
1529
  "type": "u64";
@@ -80,41 +80,8 @@
80
80
  "path": "authority"
81
81
  },
82
82
  {
83
- "kind": "const",
84
- "value": [
85
- 6,
86
- 221,
87
- 246,
88
- 225,
89
- 215,
90
- 101,
91
- 161,
92
- 147,
93
- 217,
94
- 203,
95
- 225,
96
- 70,
97
- 206,
98
- 235,
99
- 121,
100
- 172,
101
- 28,
102
- 180,
103
- 133,
104
- 237,
105
- 95,
106
- 91,
107
- 55,
108
- 145,
109
- 58,
110
- 140,
111
- 245,
112
- 133,
113
- 126,
114
- 255,
115
- 0,
116
- 169
117
- ]
83
+ "kind": "account",
84
+ "path": "token_program"
118
85
  },
119
86
  {
120
87
  "kind": "account",
@@ -541,6 +508,50 @@
541
508
  }
542
509
  ]
543
510
  },
511
+ {
512
+ "name": "receive_program_admin",
513
+ "discriminator": [
514
+ 238,
515
+ 172,
516
+ 61,
517
+ 197,
518
+ 23,
519
+ 72,
520
+ 249,
521
+ 87
522
+ ],
523
+ "accounts": [
524
+ {
525
+ "name": "config",
526
+ "writable": true,
527
+ "pda": {
528
+ "seeds": [
529
+ {
530
+ "kind": "const",
531
+ "value": [
532
+ 99,
533
+ 111,
534
+ 110,
535
+ 102,
536
+ 105,
537
+ 103
538
+ ]
539
+ }
540
+ ]
541
+ }
542
+ },
543
+ {
544
+ "name": "authority",
545
+ "writable": true,
546
+ "signer": true
547
+ },
548
+ {
549
+ "name": "system_program",
550
+ "address": "11111111111111111111111111111111"
551
+ }
552
+ ],
553
+ "args": []
554
+ },
544
555
  {
545
556
  "name": "set_base_params",
546
557
  "discriminator": [
@@ -877,11 +888,6 @@
877
888
  "writable": true,
878
889
  "signer": true
879
890
  },
880
- {
881
- "name": "new_owner",
882
- "writable": true,
883
- "signer": true
884
- },
885
891
  {
886
892
  "name": "system_program",
887
893
  "address": "11111111111111111111111111111111"
@@ -938,7 +944,8 @@
938
944
  {
939
945
  "name": "new_admin",
940
946
  "writable": true,
941
- "signer": true
947
+ "signer": true,
948
+ "optional": true
942
949
  },
943
950
  {
944
951
  "name": "system_program",
@@ -1123,41 +1130,8 @@
1123
1130
  "path": "authority"
1124
1131
  },
1125
1132
  {
1126
- "kind": "const",
1127
- "value": [
1128
- 6,
1129
- 221,
1130
- 246,
1131
- 225,
1132
- 215,
1133
- 101,
1134
- 161,
1135
- 147,
1136
- 217,
1137
- 203,
1138
- 225,
1139
- 70,
1140
- 206,
1141
- 235,
1142
- 121,
1143
- 172,
1144
- 28,
1145
- 180,
1146
- 133,
1147
- 237,
1148
- 95,
1149
- 91,
1150
- 55,
1151
- 145,
1152
- 58,
1153
- 140,
1154
- 245,
1155
- 133,
1156
- 126,
1157
- 255,
1158
- 0,
1159
- 169
1160
- ]
1133
+ "kind": "account",
1134
+ "path": "token_program"
1161
1135
  },
1162
1136
  {
1163
1137
  "kind": "account",
@@ -1395,16 +1369,21 @@
1395
1369
  },
1396
1370
  {
1397
1371
  "code": 6009,
1372
+ "name": "NotPermissioned",
1373
+ "msg": "NotPermissioned"
1374
+ },
1375
+ {
1376
+ "code": 6010,
1398
1377
  "name": "OwnableUnauthorizedAccount",
1399
1378
  "msg": "OwnableUnauthorizedAccount"
1400
1379
  },
1401
1380
  {
1402
- "code": 6010,
1381
+ "code": 6011,
1403
1382
  "name": "InvalidFeeCollector",
1404
1383
  "msg": "InvalidFeeCollector"
1405
1384
  },
1406
1385
  {
1407
- "code": 6011,
1386
+ "code": 6012,
1408
1387
  "name": "Paused",
1409
1388
  "msg": "Paused"
1410
1389
  }
@@ -1511,6 +1490,10 @@
1511
1490
  {
1512
1491
  "name": "admin",
1513
1492
  "type": "pubkey"
1493
+ },
1494
+ {
1495
+ "name": "new_admin",
1496
+ "type": "pubkey"
1514
1497
  }
1515
1498
  ]
1516
1499
  }
@@ -1531,6 +1514,10 @@
1531
1514
  "name": "owner",
1532
1515
  "type": "pubkey"
1533
1516
  },
1517
+ {
1518
+ "name": "new_owner",
1519
+ "type": "pubkey"
1520
+ },
1534
1521
  {
1535
1522
  "name": "default_fees_bips",
1536
1523
  "type": "u64"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sign-global/tokentable",
3
- "version": "0.4.1-beta.7",
3
+ "version": "0.4.1-beta.8",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -19,26 +19,6 @@ export class SignatureAirdropService {
19
19
  return this.airdropClient.getVersion();
20
20
  }
21
21
 
22
- feeCollectors = async (address: string) => {
23
- // const deployerClient = await this.getDeployerClient();
24
- // return await deployerClient.feeCollectors(address);
25
- return '';
26
- };
27
-
28
- feeTokens = async (address: string) => {
29
- // const deployerClient = await this.getDeployerClient();
30
- // return await deployerClient.feeTokens(address);
31
- return '';
32
- };
33
-
34
- async getFeelessThreshold() {
35
- // return this.airdropClient.getFeelessThreshold();
36
- }
37
-
38
- async getDeployer() {
39
- return '';
40
- }
41
-
42
22
  async getClaimFee(address: string, amount: bigint): Promise<bigint> {
43
23
  const fee = await this.airdropClient.getClaimFee(amount);
44
24
  return fee;
@@ -116,7 +116,7 @@ export abstract class SolanaContractClientBase<T extends Idl = Idl> {
116
116
  blockhash: latestBlockhash.blockhash,
117
117
  lastValidBlockHeight: latestBlockhash.lastValidBlockHeight
118
118
  },
119
- 'confirmed'
119
+ 'finalized'
120
120
  );
121
121
  return tx;
122
122
  }
@@ -98,41 +98,8 @@
98
98
  "path": "authority"
99
99
  },
100
100
  {
101
- "kind": "const",
102
- "value": [
103
- 6,
104
- 221,
105
- 246,
106
- 225,
107
- 215,
108
- 101,
109
- 161,
110
- 147,
111
- 217,
112
- 203,
113
- 225,
114
- 70,
115
- 206,
116
- 235,
117
- 121,
118
- 172,
119
- 28,
120
- 180,
121
- 133,
122
- 237,
123
- 95,
124
- 91,
125
- 55,
126
- 145,
127
- 58,
128
- 140,
129
- 245,
130
- 133,
131
- 126,
132
- 255,
133
- 0,
134
- 169
135
- ]
101
+ "kind": "account",
102
+ "path": "token_program"
136
103
  },
137
104
  {
138
105
  "kind": "arg",
@@ -749,6 +716,12 @@
749
716
  "writable": true,
750
717
  "signer": true
751
718
  },
719
+ {
720
+ "name": "new_owner",
721
+ "writable": true,
722
+ "signer": true,
723
+ "optional": true
724
+ },
752
725
  {
753
726
  "name": "system_program",
754
727
  "address": "11111111111111111111111111111111"
@@ -833,41 +806,8 @@
833
806
  "path": "authority"
834
807
  },
835
808
  {
836
- "kind": "const",
837
- "value": [
838
- 6,
839
- 221,
840
- 246,
841
- 225,
842
- 215,
843
- 101,
844
- 161,
845
- 147,
846
- 217,
847
- 203,
848
- 225,
849
- 70,
850
- 206,
851
- 235,
852
- 121,
853
- 172,
854
- 28,
855
- 180,
856
- 133,
857
- 237,
858
- 95,
859
- 91,
860
- 55,
861
- 145,
862
- 58,
863
- 140,
864
- 245,
865
- 133,
866
- 126,
867
- 255,
868
- 0,
869
- 169
870
- ]
809
+ "kind": "account",
810
+ "path": "token_program"
871
811
  },
872
812
  {
873
813
  "kind": "account",
@@ -1019,11 +959,16 @@
1019
959
  },
1020
960
  {
1021
961
  "code": 6002,
962
+ "name": "NotPermissioned",
963
+ "msg": "NotPermissioned"
964
+ },
965
+ {
966
+ "code": 6003,
1022
967
  "name": "FeesTooHigh",
1023
968
  "msg": "FeesTooHigh"
1024
969
  },
1025
970
  {
1026
- "code": 6003,
971
+ "code": 6004,
1027
972
  "name": "InvalidCallData",
1028
973
  "msg": "InvalidCallData"
1029
974
  }
@@ -1102,6 +1047,10 @@
1102
1047
  "name": "owner",
1103
1048
  "type": "pubkey"
1104
1049
  },
1050
+ {
1051
+ "name": "new_owner",
1052
+ "type": "pubkey"
1053
+ },
1105
1054
  {
1106
1055
  "name": "default_fees_bips",
1107
1056
  "type": "u64"