juno-network 0.12.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- package/main/codegen/cosmos/bundle.js +47 -47
- package/main/codegen/cosmwasm/bundle.js +17 -16
- package/main/codegen/cosmwasm/wasm/v1/authz.js +437 -0
- package/main/codegen/cosmwasm/wasm/v1/genesis.js +21 -2
- package/main/codegen/cosmwasm/wasm/v1/proposal.js +291 -4
- package/main/codegen/cosmwasm/wasm/v1/query.js +179 -3
- package/main/codegen/cosmwasm/wasm/v1/query.lcd.js +65 -2
- package/main/codegen/cosmwasm/wasm/v1/query.rpc.Query.js +27 -0
- package/main/codegen/cosmwasm/wasm/v1/tx.amino.js +89 -34
- package/main/codegen/cosmwasm/wasm/v1/tx.js +183 -23
- package/main/codegen/cosmwasm/wasm/v1/tx.registry.js +19 -1
- package/main/codegen/cosmwasm/wasm/v1/tx.rpc.msg.js +10 -0
- package/main/codegen/cosmwasm/wasm/v1/types.js +32 -11
- package/main/codegen/gaia/bundle.js +28 -0
- package/main/codegen/gaia/globalfee/v1beta1/genesis.js +100 -0
- package/main/codegen/gaia/globalfee/v1beta1/query.js +91 -0
- package/main/codegen/gaia/globalfee/v1beta1/query.lcd.js +54 -0
- package/main/codegen/gaia/globalfee/v1beta1/query.rpc.Query.js +47 -0
- package/main/codegen/gaia/lcd.js +167 -0
- package/main/codegen/gaia/rpc.query.js +134 -0
- package/main/codegen/gogoproto/bundle.js +2 -2
- package/main/codegen/google/bundle.js +6 -6
- package/main/codegen/ibc/bundle.js +56 -56
- package/main/codegen/index.js +55 -11
- package/main/codegen/juno/bundle.js +20 -20
- package/main/codegen/osmosis/bundle.js +35 -0
- package/main/codegen/osmosis/client.js +67 -0
- package/main/codegen/osmosis/lcd.js +167 -0
- package/main/codegen/osmosis/rpc.query.js +134 -0
- package/main/codegen/osmosis/rpc.tx.js +133 -0
- package/main/codegen/osmosis/tokenfactory/v1beta1/authorityMetadata.js +48 -0
- package/main/codegen/osmosis/tokenfactory/v1beta1/genesis.js +118 -0
- package/main/codegen/osmosis/tokenfactory/v1beta1/params.js +63 -0
- package/main/codegen/osmosis/tokenfactory/v1beta1/query.js +242 -0
- package/main/codegen/osmosis/tokenfactory/v1beta1/query.lcd.js +111 -0
- package/main/codegen/osmosis/tokenfactory/v1beta1/query.rpc.Query.js +73 -0
- package/main/codegen/osmosis/tokenfactory/v1beta1/tx.amino.js +192 -0
- package/main/codegen/osmosis/tokenfactory/v1beta1/tx.js +506 -0
- package/main/codegen/osmosis/tokenfactory/v1beta1/tx.registry.js +137 -0
- package/main/codegen/osmosis/tokenfactory/v1beta1/tx.rpc.msg.js +85 -0
- package/main/codegen/router/bundle.js +25 -0
- package/main/codegen/router/lcd.js +164 -0
- package/main/codegen/router/rpc.query.js +131 -0
- package/main/codegen/router/v1/genesis.js +286 -0
- package/main/codegen/router/v1/query.js +76 -0
- package/main/codegen/router/v1/query.lcd.js +54 -0
- package/main/codegen/router/v1/query.rpc.Query.js +47 -0
- package/main/codegen/tendermint/bundle.js +17 -17
- package/module/codegen/cosmos/bundle.js +47 -47
- package/module/codegen/cosmwasm/bundle.js +17 -16
- package/module/codegen/cosmwasm/wasm/v1/authz.js +346 -0
- package/module/codegen/cosmwasm/wasm/v1/genesis.js +11 -3
- package/module/codegen/cosmwasm/wasm/v1/proposal.js +261 -2
- package/module/codegen/cosmwasm/wasm/v1/query.js +159 -2
- package/module/codegen/cosmwasm/wasm/v1/query.lcd.js +22 -2
- package/module/codegen/cosmwasm/wasm/v1/query.rpc.Query.js +19 -1
- package/module/codegen/cosmwasm/wasm/v1/tx.amino.js +55 -2
- package/module/codegen/cosmwasm/wasm/v1/tx.js +161 -16
- package/module/codegen/cosmwasm/wasm/v1/tx.registry.js +20 -2
- package/module/codegen/cosmwasm/wasm/v1/tx.rpc.msg.js +7 -1
- package/module/codegen/cosmwasm/wasm/v1/types.js +18 -11
- package/module/codegen/gaia/bundle.js +17 -0
- package/module/codegen/gaia/globalfee/v1beta1/genesis.js +73 -0
- package/module/codegen/gaia/globalfee/v1beta1/query.js +64 -0
- package/module/codegen/gaia/globalfee/v1beta1/query.lcd.js +16 -0
- package/module/codegen/gaia/globalfee/v1beta1/query.rpc.Query.js +27 -0
- package/module/codegen/gaia/lcd.js +57 -0
- package/module/codegen/gaia/rpc.query.js +39 -0
- package/module/codegen/gogoproto/bundle.js +2 -2
- package/module/codegen/google/bundle.js +6 -6
- package/module/codegen/ibc/bundle.js +56 -56
- package/module/codegen/index.js +4 -0
- package/module/codegen/juno/bundle.js +20 -20
- package/module/codegen/osmosis/bundle.js +24 -0
- package/module/codegen/osmosis/client.js +36 -0
- package/module/codegen/osmosis/lcd.js +57 -0
- package/module/codegen/osmosis/rpc.query.js +39 -0
- package/module/codegen/osmosis/rpc.tx.js +30 -0
- package/module/codegen/osmosis/tokenfactory/v1beta1/authorityMetadata.js +37 -0
- package/module/codegen/osmosis/tokenfactory/v1beta1/genesis.js +91 -0
- package/module/codegen/osmosis/tokenfactory/v1beta1/params.js +38 -0
- package/module/codegen/osmosis/tokenfactory/v1beta1/query.js +207 -0
- package/module/codegen/osmosis/tokenfactory/v1beta1/query.lcd.js +33 -0
- package/module/codegen/osmosis/tokenfactory/v1beta1/query.rpc.Query.js +45 -0
- package/module/codegen/osmosis/tokenfactory/v1beta1/tx.amino.js +193 -0
- package/module/codegen/osmosis/tokenfactory/v1beta1/tx.js +473 -0
- package/module/codegen/osmosis/tokenfactory/v1beta1/tx.registry.js +123 -0
- package/module/codegen/osmosis/tokenfactory/v1beta1/tx.rpc.msg.js +47 -0
- package/module/codegen/router/bundle.js +14 -0
- package/module/codegen/router/lcd.js +55 -0
- package/module/codegen/router/rpc.query.js +37 -0
- package/module/codegen/router/v1/genesis.js +261 -0
- package/module/codegen/router/v1/query.js +63 -0
- package/module/codegen/router/v1/query.lcd.js +16 -0
- package/module/codegen/router/v1/query.rpc.Query.js +27 -0
- package/module/codegen/tendermint/bundle.js +17 -17
- package/package.json +7 -7
- package/src/codegen/cosmos/bundle.ts +76 -76
- package/src/codegen/cosmwasm/bundle.ts +24 -22
- package/src/codegen/cosmwasm/wasm/v1/authz.ts +624 -0
- package/src/codegen/cosmwasm/wasm/v1/genesis.ts +14 -2
- package/src/codegen/cosmwasm/wasm/v1/proposal.ts +526 -3
- package/src/codegen/cosmwasm/wasm/v1/query.lcd.ts +27 -3
- package/src/codegen/cosmwasm/wasm/v1/query.rpc.Query.ts +29 -1
- package/src/codegen/cosmwasm/wasm/v1/query.ts +269 -2
- package/src/codegen/cosmwasm/wasm/v1/tx.amino.ts +73 -3
- package/src/codegen/cosmwasm/wasm/v1/tx.registry.ts +23 -2
- package/src/codegen/cosmwasm/wasm/v1/tx.rpc.msg.ts +18 -2
- package/src/codegen/cosmwasm/wasm/v1/tx.ts +275 -5
- package/src/codegen/cosmwasm/wasm/v1/types.ts +47 -26
- package/src/codegen/gaia/bundle.ts +18 -0
- package/src/codegen/gaia/globalfee/v1beta1/genesis.ts +129 -0
- package/src/codegen/gaia/globalfee/v1beta1/query.lcd.ts +22 -0
- package/src/codegen/gaia/globalfee/v1beta1/query.rpc.Query.ts +34 -0
- package/src/codegen/gaia/globalfee/v1beta1/query.ts +110 -0
- package/src/codegen/gaia/lcd.ts +59 -0
- package/src/codegen/gaia/rpc.query.ts +41 -0
- package/src/codegen/gogoproto/bundle.ts +2 -2
- package/src/codegen/google/bundle.ts +10 -10
- package/src/codegen/ibc/bundle.ts +86 -86
- package/src/codegen/index.ts +4 -0
- package/src/codegen/juno/bundle.ts +34 -34
- package/src/codegen/osmosis/bundle.ts +32 -0
- package/src/codegen/osmosis/client.ts +45 -0
- package/src/codegen/osmosis/lcd.ts +59 -0
- package/src/codegen/osmosis/rpc.query.ts +41 -0
- package/src/codegen/osmosis/rpc.tx.ts +33 -0
- package/src/codegen/osmosis/tokenfactory/v1beta1/authorityMetadata.ts +67 -0
- package/src/codegen/osmosis/tokenfactory/v1beta1/genesis.ts +148 -0
- package/src/codegen/osmosis/tokenfactory/v1beta1/params.ts +58 -0
- package/src/codegen/osmosis/tokenfactory/v1beta1/query.lcd.ts +41 -0
- package/src/codegen/osmosis/tokenfactory/v1beta1/query.rpc.Query.ts +72 -0
- package/src/codegen/osmosis/tokenfactory/v1beta1/query.ts +345 -0
- package/src/codegen/osmosis/tokenfactory/v1beta1/tx.amino.ts +264 -0
- package/src/codegen/osmosis/tokenfactory/v1beta1/tx.registry.ts +142 -0
- package/src/codegen/osmosis/tokenfactory/v1beta1/tx.rpc.msg.ts +63 -0
- package/src/codegen/osmosis/tokenfactory/v1beta1/tx.ts +771 -0
- package/src/codegen/router/bundle.ts +16 -0
- package/src/codegen/router/lcd.ts +57 -0
- package/src/codegen/router/rpc.query.ts +39 -0
- package/src/codegen/router/v1/genesis.ts +413 -0
- package/src/codegen/router/v1/query.lcd.ts +22 -0
- package/src/codegen/router/v1/query.rpc.Query.ts +35 -0
- package/src/codegen/router/v1/query.ts +100 -0
- package/src/codegen/tendermint/bundle.ts +22 -22
- package/types/codegen/cosmos/bundle.d.ts +61 -61
- package/types/codegen/cosmwasm/bundle.d.ts +386 -248
- package/types/codegen/cosmwasm/client.d.ts +31 -0
- package/types/codegen/cosmwasm/rpc.query.d.ts +2 -0
- package/types/codegen/cosmwasm/wasm/v1/authz.d.ts +223 -0
- package/types/codegen/cosmwasm/wasm/v1/genesis.d.ts +3 -1
- package/types/codegen/cosmwasm/wasm/v1/proposal.d.ts +171 -2
- package/types/codegen/cosmwasm/wasm/v1/query.d.ts +79 -1
- package/types/codegen/cosmwasm/wasm/v1/query.lcd.d.ts +3 -1
- package/types/codegen/cosmwasm/wasm/v1/query.rpc.Query.d.ts +9 -1
- package/types/codegen/cosmwasm/wasm/v1/tx.amino.d.ts +23 -1
- package/types/codegen/cosmwasm/wasm/v1/tx.d.ts +82 -4
- package/types/codegen/cosmwasm/wasm/v1/tx.registry.d.ts +13 -1
- package/types/codegen/cosmwasm/wasm/v1/tx.rpc.msg.d.ts +11 -2
- package/types/codegen/cosmwasm/wasm/v1/types.d.ts +24 -14
- package/types/codegen/gaia/bundle.d.ts +174 -0
- package/types/codegen/gaia/globalfee/v1beta1/genesis.d.ts +45 -0
- package/types/codegen/gaia/globalfee/v1beta1/query.d.ts +39 -0
- package/types/codegen/gaia/globalfee/v1beta1/query.lcd.d.ts +9 -0
- package/types/codegen/gaia/globalfee/v1beta1/query.rpc.Query.d.ts +15 -0
- package/types/codegen/gaia/lcd.d.ts +33 -0
- package/types/codegen/gaia/rpc.query.d.ts +105 -0
- package/types/codegen/google/bundle.d.ts +123 -123
- package/types/codegen/ibc/bundle.d.ts +773 -773
- package/types/codegen/index.d.ts +5 -0
- package/types/codegen/juno/bundle.d.ts +284 -41
- package/types/codegen/juno/client.d.ts +54 -0
- package/types/codegen/juno/feeshare/v1/feeshare.d.ts +49 -0
- package/types/codegen/juno/feeshare/v1/genesis.d.ts +61 -0
- package/types/codegen/juno/feeshare/v1/query.d.ts +213 -0
- package/types/codegen/juno/feeshare/v1/query.lcd.d.ts +13 -0
- package/types/codegen/juno/feeshare/v1/query.rpc.Query.d.ts +38 -0
- package/types/codegen/juno/feeshare/v1/tx.amino.d.ts +42 -0
- package/types/codegen/juno/feeshare/v1/tx.d.ts +136 -0
- package/types/codegen/juno/feeshare/v1/tx.registry.d.ts +48 -0
- package/types/codegen/juno/feeshare/v1/tx.rpc.msg.d.ts +21 -0
- package/types/codegen/juno/lcd.d.ts +3 -0
- package/types/codegen/juno/rpc.query.d.ts +9 -0
- package/types/codegen/juno/rpc.tx.d.ts +31 -0
- package/types/codegen/osmosis/bundle.d.ts +507 -0
- package/types/codegen/osmosis/client.d.ts +137 -0
- package/types/codegen/osmosis/lcd.d.ts +33 -0
- package/types/codegen/osmosis/rpc.query.d.ts +107 -0
- package/types/codegen/osmosis/rpc.tx.d.ts +31 -0
- package/types/codegen/osmosis/tokenfactory/v1beta1/authorityMetadata.d.ts +25 -0
- package/types/codegen/osmosis/tokenfactory/v1beta1/genesis.d.ts +44 -0
- package/types/codegen/osmosis/tokenfactory/v1beta1/params.d.ts +16 -0
- package/types/codegen/osmosis/tokenfactory/v1beta1/query.d.ts +106 -0
- package/types/codegen/osmosis/tokenfactory/v1beta1/query.lcd.d.ts +11 -0
- package/types/codegen/osmosis/tokenfactory/v1beta1/query.rpc.Query.d.ts +33 -0
- package/types/codegen/osmosis/tokenfactory/v1beta1/tx.amino.d.ts +103 -0
- package/types/codegen/osmosis/tokenfactory/v1beta1/tx.d.ts +228 -0
- package/types/codegen/osmosis/tokenfactory/v1beta1/tx.registry.d.ts +84 -0
- package/types/codegen/osmosis/tokenfactory/v1beta1/tx.rpc.msg.d.ts +21 -0
- package/types/codegen/router/bundle.d.ts +178 -0
- package/types/codegen/router/lcd.d.ts +31 -0
- package/types/codegen/router/rpc.query.d.ts +103 -0
- package/types/codegen/router/v1/genesis.d.ts +100 -0
- package/types/codegen/router/v1/query.d.ts +29 -0
- package/types/codegen/router/v1/query.lcd.d.ts +9 -0
- package/types/codegen/router/v1/query.rpc.Query.d.ts +16 -0
- package/types/codegen/tendermint/bundle.d.ts +291 -291
@@ -19,6 +19,24 @@ export interface StoreCodeProposal {
|
|
19
19
|
/** InstantiatePermission to apply on contract creation, optional */
|
20
20
|
|
21
21
|
instantiatePermission?: AccessConfig;
|
22
|
+
/** UnpinCode code on upload, optional */
|
23
|
+
|
24
|
+
unpinCode: boolean;
|
25
|
+
/** Source is the URL where the code is hosted */
|
26
|
+
|
27
|
+
source: string;
|
28
|
+
/**
|
29
|
+
* Builder is the docker image used to build the code deterministically, used
|
30
|
+
* for smart contract verification
|
31
|
+
*/
|
32
|
+
|
33
|
+
builder: string;
|
34
|
+
/**
|
35
|
+
* CodeHash is the SHA256 sum of the code outputted by builder, used for smart
|
36
|
+
* contract verification
|
37
|
+
*/
|
38
|
+
|
39
|
+
codeHash: Uint8Array;
|
22
40
|
}
|
23
41
|
/** StoreCodeProposal gov proposal content type to submit WASM code to the system */
|
24
42
|
|
@@ -37,6 +55,24 @@ export interface StoreCodeProposalSDKType {
|
|
37
55
|
/** InstantiatePermission to apply on contract creation, optional */
|
38
56
|
|
39
57
|
instantiate_permission?: AccessConfigSDKType;
|
58
|
+
/** UnpinCode code on upload, optional */
|
59
|
+
|
60
|
+
unpin_code: boolean;
|
61
|
+
/** Source is the URL where the code is hosted */
|
62
|
+
|
63
|
+
source: string;
|
64
|
+
/**
|
65
|
+
* Builder is the docker image used to build the code deterministically, used
|
66
|
+
* for smart contract verification
|
67
|
+
*/
|
68
|
+
|
69
|
+
builder: string;
|
70
|
+
/**
|
71
|
+
* CodeHash is the SHA256 sum of the code outputted by builder, used for smart
|
72
|
+
* contract verification
|
73
|
+
*/
|
74
|
+
|
75
|
+
code_hash: Uint8Array;
|
40
76
|
}
|
41
77
|
/**
|
42
78
|
* InstantiateContractProposal gov proposal content type to instantiate a
|
@@ -109,7 +145,7 @@ export interface MigrateContractProposal {
|
|
109
145
|
/** Contract is the address of the smart contract */
|
110
146
|
|
111
147
|
contract: string;
|
112
|
-
/** CodeID references the new WASM
|
148
|
+
/** CodeID references the new WASM code */
|
113
149
|
|
114
150
|
codeId: Long;
|
115
151
|
/** Msg json encoded message to be passed to the contract on migration */
|
@@ -127,7 +163,7 @@ export interface MigrateContractProposalSDKType {
|
|
127
163
|
/** Contract is the address of the smart contract */
|
128
164
|
|
129
165
|
contract: string;
|
130
|
-
/** CodeID references the new WASM
|
166
|
+
/** CodeID references the new WASM code */
|
131
167
|
|
132
168
|
code_id: Long;
|
133
169
|
/** Msg json encoded message to be passed to the contract on migration */
|
@@ -332,6 +368,168 @@ export interface UnpinCodesProposalSDKType {
|
|
332
368
|
|
333
369
|
code_ids: Long[];
|
334
370
|
}
|
371
|
+
/**
|
372
|
+
* AccessConfigUpdate contains the code id and the access config to be
|
373
|
+
* applied.
|
374
|
+
*/
|
375
|
+
|
376
|
+
export interface AccessConfigUpdate {
|
377
|
+
/** CodeID is the reference to the stored WASM code to be updated */
|
378
|
+
codeId: Long;
|
379
|
+
/** InstantiatePermission to apply to the set of code ids */
|
380
|
+
|
381
|
+
instantiatePermission?: AccessConfig;
|
382
|
+
}
|
383
|
+
/**
|
384
|
+
* AccessConfigUpdate contains the code id and the access config to be
|
385
|
+
* applied.
|
386
|
+
*/
|
387
|
+
|
388
|
+
export interface AccessConfigUpdateSDKType {
|
389
|
+
/** CodeID is the reference to the stored WASM code to be updated */
|
390
|
+
code_id: Long;
|
391
|
+
/** InstantiatePermission to apply to the set of code ids */
|
392
|
+
|
393
|
+
instantiate_permission?: AccessConfigSDKType;
|
394
|
+
}
|
395
|
+
/**
|
396
|
+
* UpdateInstantiateConfigProposal gov proposal content type to update
|
397
|
+
* instantiate config to a set of code ids.
|
398
|
+
*/
|
399
|
+
|
400
|
+
export interface UpdateInstantiateConfigProposal {
|
401
|
+
/** Title is a short summary */
|
402
|
+
title: string;
|
403
|
+
/** Description is a human readable text */
|
404
|
+
|
405
|
+
description: string;
|
406
|
+
/**
|
407
|
+
* AccessConfigUpdate contains the list of code ids and the access config
|
408
|
+
* to be applied.
|
409
|
+
*/
|
410
|
+
|
411
|
+
accessConfigUpdates: AccessConfigUpdate[];
|
412
|
+
}
|
413
|
+
/**
|
414
|
+
* UpdateInstantiateConfigProposal gov proposal content type to update
|
415
|
+
* instantiate config to a set of code ids.
|
416
|
+
*/
|
417
|
+
|
418
|
+
export interface UpdateInstantiateConfigProposalSDKType {
|
419
|
+
/** Title is a short summary */
|
420
|
+
title: string;
|
421
|
+
/** Description is a human readable text */
|
422
|
+
|
423
|
+
description: string;
|
424
|
+
/**
|
425
|
+
* AccessConfigUpdate contains the list of code ids and the access config
|
426
|
+
* to be applied.
|
427
|
+
*/
|
428
|
+
|
429
|
+
access_config_updates: AccessConfigUpdateSDKType[];
|
430
|
+
}
|
431
|
+
/**
|
432
|
+
* StoreAndInstantiateContractProposal gov proposal content type to store
|
433
|
+
* and instantiate the contract.
|
434
|
+
*/
|
435
|
+
|
436
|
+
export interface StoreAndInstantiateContractProposal {
|
437
|
+
/** Title is a short summary */
|
438
|
+
title: string;
|
439
|
+
/** Description is a human readable text */
|
440
|
+
|
441
|
+
description: string;
|
442
|
+
/** RunAs is the address that is passed to the contract's environment as sender */
|
443
|
+
|
444
|
+
runAs: string;
|
445
|
+
/** WASMByteCode can be raw or gzip compressed */
|
446
|
+
|
447
|
+
wasmByteCode: Uint8Array;
|
448
|
+
/** InstantiatePermission to apply on contract creation, optional */
|
449
|
+
|
450
|
+
instantiatePermission?: AccessConfig;
|
451
|
+
/** UnpinCode code on upload, optional */
|
452
|
+
|
453
|
+
unpinCode: boolean;
|
454
|
+
/** Admin is an optional address that can execute migrations */
|
455
|
+
|
456
|
+
admin: string;
|
457
|
+
/** Label is optional metadata to be stored with a constract instance. */
|
458
|
+
|
459
|
+
label: string;
|
460
|
+
/** Msg json encoded message to be passed to the contract on instantiation */
|
461
|
+
|
462
|
+
msg: Uint8Array;
|
463
|
+
/** Funds coins that are transferred to the contract on instantiation */
|
464
|
+
|
465
|
+
funds: Coin[];
|
466
|
+
/** Source is the URL where the code is hosted */
|
467
|
+
|
468
|
+
source: string;
|
469
|
+
/**
|
470
|
+
* Builder is the docker image used to build the code deterministically, used
|
471
|
+
* for smart contract verification
|
472
|
+
*/
|
473
|
+
|
474
|
+
builder: string;
|
475
|
+
/**
|
476
|
+
* CodeHash is the SHA256 sum of the code outputted by builder, used for smart
|
477
|
+
* contract verification
|
478
|
+
*/
|
479
|
+
|
480
|
+
codeHash: Uint8Array;
|
481
|
+
}
|
482
|
+
/**
|
483
|
+
* StoreAndInstantiateContractProposal gov proposal content type to store
|
484
|
+
* and instantiate the contract.
|
485
|
+
*/
|
486
|
+
|
487
|
+
export interface StoreAndInstantiateContractProposalSDKType {
|
488
|
+
/** Title is a short summary */
|
489
|
+
title: string;
|
490
|
+
/** Description is a human readable text */
|
491
|
+
|
492
|
+
description: string;
|
493
|
+
/** RunAs is the address that is passed to the contract's environment as sender */
|
494
|
+
|
495
|
+
run_as: string;
|
496
|
+
/** WASMByteCode can be raw or gzip compressed */
|
497
|
+
|
498
|
+
wasm_byte_code: Uint8Array;
|
499
|
+
/** InstantiatePermission to apply on contract creation, optional */
|
500
|
+
|
501
|
+
instantiate_permission?: AccessConfigSDKType;
|
502
|
+
/** UnpinCode code on upload, optional */
|
503
|
+
|
504
|
+
unpin_code: boolean;
|
505
|
+
/** Admin is an optional address that can execute migrations */
|
506
|
+
|
507
|
+
admin: string;
|
508
|
+
/** Label is optional metadata to be stored with a constract instance. */
|
509
|
+
|
510
|
+
label: string;
|
511
|
+
/** Msg json encoded message to be passed to the contract on instantiation */
|
512
|
+
|
513
|
+
msg: Uint8Array;
|
514
|
+
/** Funds coins that are transferred to the contract on instantiation */
|
515
|
+
|
516
|
+
funds: CoinSDKType[];
|
517
|
+
/** Source is the URL where the code is hosted */
|
518
|
+
|
519
|
+
source: string;
|
520
|
+
/**
|
521
|
+
* Builder is the docker image used to build the code deterministically, used
|
522
|
+
* for smart contract verification
|
523
|
+
*/
|
524
|
+
|
525
|
+
builder: string;
|
526
|
+
/**
|
527
|
+
* CodeHash is the SHA256 sum of the code outputted by builder, used for smart
|
528
|
+
* contract verification
|
529
|
+
*/
|
530
|
+
|
531
|
+
code_hash: Uint8Array;
|
532
|
+
}
|
335
533
|
|
336
534
|
function createBaseStoreCodeProposal(): StoreCodeProposal {
|
337
535
|
return {
|
@@ -339,7 +537,11 @@ function createBaseStoreCodeProposal(): StoreCodeProposal {
|
|
339
537
|
description: "",
|
340
538
|
runAs: "",
|
341
539
|
wasmByteCode: new Uint8Array(),
|
342
|
-
instantiatePermission: undefined
|
540
|
+
instantiatePermission: undefined,
|
541
|
+
unpinCode: false,
|
542
|
+
source: "",
|
543
|
+
builder: "",
|
544
|
+
codeHash: new Uint8Array()
|
343
545
|
};
|
344
546
|
}
|
345
547
|
|
@@ -365,6 +567,22 @@ export const StoreCodeProposal = {
|
|
365
567
|
AccessConfig.encode(message.instantiatePermission, writer.uint32(58).fork()).ldelim();
|
366
568
|
}
|
367
569
|
|
570
|
+
if (message.unpinCode === true) {
|
571
|
+
writer.uint32(64).bool(message.unpinCode);
|
572
|
+
}
|
573
|
+
|
574
|
+
if (message.source !== "") {
|
575
|
+
writer.uint32(74).string(message.source);
|
576
|
+
}
|
577
|
+
|
578
|
+
if (message.builder !== "") {
|
579
|
+
writer.uint32(82).string(message.builder);
|
580
|
+
}
|
581
|
+
|
582
|
+
if (message.codeHash.length !== 0) {
|
583
|
+
writer.uint32(90).bytes(message.codeHash);
|
584
|
+
}
|
585
|
+
|
368
586
|
return writer;
|
369
587
|
},
|
370
588
|
|
@@ -397,6 +615,22 @@ export const StoreCodeProposal = {
|
|
397
615
|
message.instantiatePermission = AccessConfig.decode(reader, reader.uint32());
|
398
616
|
break;
|
399
617
|
|
618
|
+
case 8:
|
619
|
+
message.unpinCode = reader.bool();
|
620
|
+
break;
|
621
|
+
|
622
|
+
case 9:
|
623
|
+
message.source = reader.string();
|
624
|
+
break;
|
625
|
+
|
626
|
+
case 10:
|
627
|
+
message.builder = reader.string();
|
628
|
+
break;
|
629
|
+
|
630
|
+
case 11:
|
631
|
+
message.codeHash = reader.bytes();
|
632
|
+
break;
|
633
|
+
|
400
634
|
default:
|
401
635
|
reader.skipType(tag & 7);
|
402
636
|
break;
|
@@ -413,6 +647,10 @@ export const StoreCodeProposal = {
|
|
413
647
|
message.runAs = object.runAs ?? "";
|
414
648
|
message.wasmByteCode = object.wasmByteCode ?? new Uint8Array();
|
415
649
|
message.instantiatePermission = object.instantiatePermission !== undefined && object.instantiatePermission !== null ? AccessConfig.fromPartial(object.instantiatePermission) : undefined;
|
650
|
+
message.unpinCode = object.unpinCode ?? false;
|
651
|
+
message.source = object.source ?? "";
|
652
|
+
message.builder = object.builder ?? "";
|
653
|
+
message.codeHash = object.codeHash ?? new Uint8Array();
|
416
654
|
return message;
|
417
655
|
}
|
418
656
|
|
@@ -1080,4 +1318,289 @@ export const UnpinCodesProposal = {
|
|
1080
1318
|
return message;
|
1081
1319
|
}
|
1082
1320
|
|
1321
|
+
};
|
1322
|
+
|
1323
|
+
function createBaseAccessConfigUpdate(): AccessConfigUpdate {
|
1324
|
+
return {
|
1325
|
+
codeId: Long.UZERO,
|
1326
|
+
instantiatePermission: undefined
|
1327
|
+
};
|
1328
|
+
}
|
1329
|
+
|
1330
|
+
export const AccessConfigUpdate = {
|
1331
|
+
encode(message: AccessConfigUpdate, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
1332
|
+
if (!message.codeId.isZero()) {
|
1333
|
+
writer.uint32(8).uint64(message.codeId);
|
1334
|
+
}
|
1335
|
+
|
1336
|
+
if (message.instantiatePermission !== undefined) {
|
1337
|
+
AccessConfig.encode(message.instantiatePermission, writer.uint32(18).fork()).ldelim();
|
1338
|
+
}
|
1339
|
+
|
1340
|
+
return writer;
|
1341
|
+
},
|
1342
|
+
|
1343
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AccessConfigUpdate {
|
1344
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
1345
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
1346
|
+
const message = createBaseAccessConfigUpdate();
|
1347
|
+
|
1348
|
+
while (reader.pos < end) {
|
1349
|
+
const tag = reader.uint32();
|
1350
|
+
|
1351
|
+
switch (tag >>> 3) {
|
1352
|
+
case 1:
|
1353
|
+
message.codeId = (reader.uint64() as Long);
|
1354
|
+
break;
|
1355
|
+
|
1356
|
+
case 2:
|
1357
|
+
message.instantiatePermission = AccessConfig.decode(reader, reader.uint32());
|
1358
|
+
break;
|
1359
|
+
|
1360
|
+
default:
|
1361
|
+
reader.skipType(tag & 7);
|
1362
|
+
break;
|
1363
|
+
}
|
1364
|
+
}
|
1365
|
+
|
1366
|
+
return message;
|
1367
|
+
},
|
1368
|
+
|
1369
|
+
fromPartial(object: DeepPartial<AccessConfigUpdate>): AccessConfigUpdate {
|
1370
|
+
const message = createBaseAccessConfigUpdate();
|
1371
|
+
message.codeId = object.codeId !== undefined && object.codeId !== null ? Long.fromValue(object.codeId) : Long.UZERO;
|
1372
|
+
message.instantiatePermission = object.instantiatePermission !== undefined && object.instantiatePermission !== null ? AccessConfig.fromPartial(object.instantiatePermission) : undefined;
|
1373
|
+
return message;
|
1374
|
+
}
|
1375
|
+
|
1376
|
+
};
|
1377
|
+
|
1378
|
+
function createBaseUpdateInstantiateConfigProposal(): UpdateInstantiateConfigProposal {
|
1379
|
+
return {
|
1380
|
+
title: "",
|
1381
|
+
description: "",
|
1382
|
+
accessConfigUpdates: []
|
1383
|
+
};
|
1384
|
+
}
|
1385
|
+
|
1386
|
+
export const UpdateInstantiateConfigProposal = {
|
1387
|
+
encode(message: UpdateInstantiateConfigProposal, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
1388
|
+
if (message.title !== "") {
|
1389
|
+
writer.uint32(10).string(message.title);
|
1390
|
+
}
|
1391
|
+
|
1392
|
+
if (message.description !== "") {
|
1393
|
+
writer.uint32(18).string(message.description);
|
1394
|
+
}
|
1395
|
+
|
1396
|
+
for (const v of message.accessConfigUpdates) {
|
1397
|
+
AccessConfigUpdate.encode(v!, writer.uint32(26).fork()).ldelim();
|
1398
|
+
}
|
1399
|
+
|
1400
|
+
return writer;
|
1401
|
+
},
|
1402
|
+
|
1403
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UpdateInstantiateConfigProposal {
|
1404
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
1405
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
1406
|
+
const message = createBaseUpdateInstantiateConfigProposal();
|
1407
|
+
|
1408
|
+
while (reader.pos < end) {
|
1409
|
+
const tag = reader.uint32();
|
1410
|
+
|
1411
|
+
switch (tag >>> 3) {
|
1412
|
+
case 1:
|
1413
|
+
message.title = reader.string();
|
1414
|
+
break;
|
1415
|
+
|
1416
|
+
case 2:
|
1417
|
+
message.description = reader.string();
|
1418
|
+
break;
|
1419
|
+
|
1420
|
+
case 3:
|
1421
|
+
message.accessConfigUpdates.push(AccessConfigUpdate.decode(reader, reader.uint32()));
|
1422
|
+
break;
|
1423
|
+
|
1424
|
+
default:
|
1425
|
+
reader.skipType(tag & 7);
|
1426
|
+
break;
|
1427
|
+
}
|
1428
|
+
}
|
1429
|
+
|
1430
|
+
return message;
|
1431
|
+
},
|
1432
|
+
|
1433
|
+
fromPartial(object: DeepPartial<UpdateInstantiateConfigProposal>): UpdateInstantiateConfigProposal {
|
1434
|
+
const message = createBaseUpdateInstantiateConfigProposal();
|
1435
|
+
message.title = object.title ?? "";
|
1436
|
+
message.description = object.description ?? "";
|
1437
|
+
message.accessConfigUpdates = object.accessConfigUpdates?.map(e => AccessConfigUpdate.fromPartial(e)) || [];
|
1438
|
+
return message;
|
1439
|
+
}
|
1440
|
+
|
1441
|
+
};
|
1442
|
+
|
1443
|
+
function createBaseStoreAndInstantiateContractProposal(): StoreAndInstantiateContractProposal {
|
1444
|
+
return {
|
1445
|
+
title: "",
|
1446
|
+
description: "",
|
1447
|
+
runAs: "",
|
1448
|
+
wasmByteCode: new Uint8Array(),
|
1449
|
+
instantiatePermission: undefined,
|
1450
|
+
unpinCode: false,
|
1451
|
+
admin: "",
|
1452
|
+
label: "",
|
1453
|
+
msg: new Uint8Array(),
|
1454
|
+
funds: [],
|
1455
|
+
source: "",
|
1456
|
+
builder: "",
|
1457
|
+
codeHash: new Uint8Array()
|
1458
|
+
};
|
1459
|
+
}
|
1460
|
+
|
1461
|
+
export const StoreAndInstantiateContractProposal = {
|
1462
|
+
encode(message: StoreAndInstantiateContractProposal, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
1463
|
+
if (message.title !== "") {
|
1464
|
+
writer.uint32(10).string(message.title);
|
1465
|
+
}
|
1466
|
+
|
1467
|
+
if (message.description !== "") {
|
1468
|
+
writer.uint32(18).string(message.description);
|
1469
|
+
}
|
1470
|
+
|
1471
|
+
if (message.runAs !== "") {
|
1472
|
+
writer.uint32(26).string(message.runAs);
|
1473
|
+
}
|
1474
|
+
|
1475
|
+
if (message.wasmByteCode.length !== 0) {
|
1476
|
+
writer.uint32(34).bytes(message.wasmByteCode);
|
1477
|
+
}
|
1478
|
+
|
1479
|
+
if (message.instantiatePermission !== undefined) {
|
1480
|
+
AccessConfig.encode(message.instantiatePermission, writer.uint32(42).fork()).ldelim();
|
1481
|
+
}
|
1482
|
+
|
1483
|
+
if (message.unpinCode === true) {
|
1484
|
+
writer.uint32(48).bool(message.unpinCode);
|
1485
|
+
}
|
1486
|
+
|
1487
|
+
if (message.admin !== "") {
|
1488
|
+
writer.uint32(58).string(message.admin);
|
1489
|
+
}
|
1490
|
+
|
1491
|
+
if (message.label !== "") {
|
1492
|
+
writer.uint32(66).string(message.label);
|
1493
|
+
}
|
1494
|
+
|
1495
|
+
if (message.msg.length !== 0) {
|
1496
|
+
writer.uint32(74).bytes(message.msg);
|
1497
|
+
}
|
1498
|
+
|
1499
|
+
for (const v of message.funds) {
|
1500
|
+
Coin.encode(v!, writer.uint32(82).fork()).ldelim();
|
1501
|
+
}
|
1502
|
+
|
1503
|
+
if (message.source !== "") {
|
1504
|
+
writer.uint32(90).string(message.source);
|
1505
|
+
}
|
1506
|
+
|
1507
|
+
if (message.builder !== "") {
|
1508
|
+
writer.uint32(98).string(message.builder);
|
1509
|
+
}
|
1510
|
+
|
1511
|
+
if (message.codeHash.length !== 0) {
|
1512
|
+
writer.uint32(106).bytes(message.codeHash);
|
1513
|
+
}
|
1514
|
+
|
1515
|
+
return writer;
|
1516
|
+
},
|
1517
|
+
|
1518
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): StoreAndInstantiateContractProposal {
|
1519
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
1520
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
1521
|
+
const message = createBaseStoreAndInstantiateContractProposal();
|
1522
|
+
|
1523
|
+
while (reader.pos < end) {
|
1524
|
+
const tag = reader.uint32();
|
1525
|
+
|
1526
|
+
switch (tag >>> 3) {
|
1527
|
+
case 1:
|
1528
|
+
message.title = reader.string();
|
1529
|
+
break;
|
1530
|
+
|
1531
|
+
case 2:
|
1532
|
+
message.description = reader.string();
|
1533
|
+
break;
|
1534
|
+
|
1535
|
+
case 3:
|
1536
|
+
message.runAs = reader.string();
|
1537
|
+
break;
|
1538
|
+
|
1539
|
+
case 4:
|
1540
|
+
message.wasmByteCode = reader.bytes();
|
1541
|
+
break;
|
1542
|
+
|
1543
|
+
case 5:
|
1544
|
+
message.instantiatePermission = AccessConfig.decode(reader, reader.uint32());
|
1545
|
+
break;
|
1546
|
+
|
1547
|
+
case 6:
|
1548
|
+
message.unpinCode = reader.bool();
|
1549
|
+
break;
|
1550
|
+
|
1551
|
+
case 7:
|
1552
|
+
message.admin = reader.string();
|
1553
|
+
break;
|
1554
|
+
|
1555
|
+
case 8:
|
1556
|
+
message.label = reader.string();
|
1557
|
+
break;
|
1558
|
+
|
1559
|
+
case 9:
|
1560
|
+
message.msg = reader.bytes();
|
1561
|
+
break;
|
1562
|
+
|
1563
|
+
case 10:
|
1564
|
+
message.funds.push(Coin.decode(reader, reader.uint32()));
|
1565
|
+
break;
|
1566
|
+
|
1567
|
+
case 11:
|
1568
|
+
message.source = reader.string();
|
1569
|
+
break;
|
1570
|
+
|
1571
|
+
case 12:
|
1572
|
+
message.builder = reader.string();
|
1573
|
+
break;
|
1574
|
+
|
1575
|
+
case 13:
|
1576
|
+
message.codeHash = reader.bytes();
|
1577
|
+
break;
|
1578
|
+
|
1579
|
+
default:
|
1580
|
+
reader.skipType(tag & 7);
|
1581
|
+
break;
|
1582
|
+
}
|
1583
|
+
}
|
1584
|
+
|
1585
|
+
return message;
|
1586
|
+
},
|
1587
|
+
|
1588
|
+
fromPartial(object: DeepPartial<StoreAndInstantiateContractProposal>): StoreAndInstantiateContractProposal {
|
1589
|
+
const message = createBaseStoreAndInstantiateContractProposal();
|
1590
|
+
message.title = object.title ?? "";
|
1591
|
+
message.description = object.description ?? "";
|
1592
|
+
message.runAs = object.runAs ?? "";
|
1593
|
+
message.wasmByteCode = object.wasmByteCode ?? new Uint8Array();
|
1594
|
+
message.instantiatePermission = object.instantiatePermission !== undefined && object.instantiatePermission !== null ? AccessConfig.fromPartial(object.instantiatePermission) : undefined;
|
1595
|
+
message.unpinCode = object.unpinCode ?? false;
|
1596
|
+
message.admin = object.admin ?? "";
|
1597
|
+
message.label = object.label ?? "";
|
1598
|
+
message.msg = object.msg ?? new Uint8Array();
|
1599
|
+
message.funds = object.funds?.map(e => Coin.fromPartial(e)) || [];
|
1600
|
+
message.source = object.source ?? "";
|
1601
|
+
message.builder = object.builder ?? "";
|
1602
|
+
message.codeHash = object.codeHash ?? new Uint8Array();
|
1603
|
+
return message;
|
1604
|
+
}
|
1605
|
+
|
1083
1606
|
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { setPaginationParams } from "../../../helpers";
|
2
2
|
import { LCDClient } from "@osmonauts/lcd";
|
3
|
-
import { QueryContractInfoRequest, QueryContractInfoResponseSDKType, QueryContractHistoryRequest, QueryContractHistoryResponseSDKType, QueryContractsByCodeRequest, QueryContractsByCodeResponseSDKType, QueryAllContractStateRequest, QueryAllContractStateResponseSDKType, QueryRawContractStateRequest, QueryRawContractStateResponseSDKType, QuerySmartContractStateRequest, QuerySmartContractStateResponseSDKType, QueryCodeRequest, QueryCodeResponseSDKType, QueryCodesRequest, QueryCodesResponseSDKType, QueryPinnedCodesRequest, QueryPinnedCodesResponseSDKType } from "./query";
|
3
|
+
import { QueryContractInfoRequest, QueryContractInfoResponseSDKType, QueryContractHistoryRequest, QueryContractHistoryResponseSDKType, QueryContractsByCodeRequest, QueryContractsByCodeResponseSDKType, QueryAllContractStateRequest, QueryAllContractStateResponseSDKType, QueryRawContractStateRequest, QueryRawContractStateResponseSDKType, QuerySmartContractStateRequest, QuerySmartContractStateResponseSDKType, QueryCodeRequest, QueryCodeResponseSDKType, QueryCodesRequest, QueryCodesResponseSDKType, QueryPinnedCodesRequest, QueryPinnedCodesResponseSDKType, QueryParamsRequest, QueryParamsResponseSDKType, QueryContractsByCreatorRequest, QueryContractsByCreatorResponseSDKType } from "./query";
|
4
4
|
export class LCDQueryClient {
|
5
5
|
req: LCDClient;
|
6
6
|
|
@@ -19,6 +19,8 @@ export class LCDQueryClient {
|
|
19
19
|
this.code = this.code.bind(this);
|
20
20
|
this.codes = this.codes.bind(this);
|
21
21
|
this.pinnedCodes = this.pinnedCodes.bind(this);
|
22
|
+
this.params = this.params.bind(this);
|
23
|
+
this.contractsByCreator = this.contractsByCreator.bind(this);
|
22
24
|
}
|
23
25
|
/* ContractInfo gets the contract meta data */
|
24
26
|
|
@@ -76,14 +78,14 @@ export class LCDQueryClient {
|
|
76
78
|
|
77
79
|
|
78
80
|
async rawContractState(params: QueryRawContractStateRequest): Promise<QueryRawContractStateResponseSDKType> {
|
79
|
-
const endpoint = `wasm/v1/contract/${params.address}/raw/${params.queryData}`;
|
81
|
+
const endpoint = `cosmwasm/wasm/v1/contract/${params.address}/raw/${params.queryData}`;
|
80
82
|
return await this.req.get<QueryRawContractStateResponseSDKType>(endpoint);
|
81
83
|
}
|
82
84
|
/* SmartContractState get smart query result from the contract */
|
83
85
|
|
84
86
|
|
85
87
|
async smartContractState(params: QuerySmartContractStateRequest): Promise<QuerySmartContractStateResponseSDKType> {
|
86
|
-
const endpoint = `wasm/v1/contract/${params.address}/smart/${params.queryData}`;
|
88
|
+
const endpoint = `cosmwasm/wasm/v1/contract/${params.address}/smart/${params.queryData}`;
|
87
89
|
return await this.req.get<QuerySmartContractStateResponseSDKType>(endpoint);
|
88
90
|
}
|
89
91
|
/* Code gets the binary code and metadata for a singe wasm code */
|
@@ -127,5 +129,27 @@ export class LCDQueryClient {
|
|
127
129
|
const endpoint = `cosmwasm/wasm/v1/codes/pinned`;
|
128
130
|
return await this.req.get<QueryPinnedCodesResponseSDKType>(endpoint, options);
|
129
131
|
}
|
132
|
+
/* Params gets the module params */
|
133
|
+
|
134
|
+
|
135
|
+
async params(_params: QueryParamsRequest = {}): Promise<QueryParamsResponseSDKType> {
|
136
|
+
const endpoint = `cosmwasm/wasm/v1/codes/params`;
|
137
|
+
return await this.req.get<QueryParamsResponseSDKType>(endpoint);
|
138
|
+
}
|
139
|
+
/* ContractsByCreator gets the contracts by creator */
|
140
|
+
|
141
|
+
|
142
|
+
async contractsByCreator(params: QueryContractsByCreatorRequest): Promise<QueryContractsByCreatorResponseSDKType> {
|
143
|
+
const options: any = {
|
144
|
+
params: {}
|
145
|
+
};
|
146
|
+
|
147
|
+
if (typeof params?.pagination !== "undefined") {
|
148
|
+
setPaginationParams(options, params.pagination);
|
149
|
+
}
|
150
|
+
|
151
|
+
const endpoint = `cosmwasm/wasm/v1/contracts/creator/${params.creatorAddress}`;
|
152
|
+
return await this.req.get<QueryContractsByCreatorResponseSDKType>(endpoint, options);
|
153
|
+
}
|
130
154
|
|
131
155
|
}
|