@thruputchain/client 0.0.0-stage → 0.25.0
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/LICENSE +201 -0
- package/README.md +935 -2
- package/dist/actions-CdFSUTO2.js +298 -0
- package/dist/actions-CdFSUTO2.js.map +1 -0
- package/dist/actions-DxJZ3yIv.cjs +357 -0
- package/dist/actions-DxJZ3yIv.cjs.map +1 -0
- package/dist/actions.cjs +19 -0
- package/dist/actions.d.cts +4 -0
- package/dist/actions.d.ts +4 -0
- package/dist/actions.js +3 -0
- package/dist/client-BxB6ktQd.d.cts +690 -0
- package/dist/client-BxB6ktQd.d.cts.map +1 -0
- package/dist/client-BxB6ktQd.d.ts +690 -0
- package/dist/client-BxB6ktQd.d.ts.map +1 -0
- package/dist/codec-B7HJjMzI.cjs +8190 -0
- package/dist/codec-B7HJjMzI.cjs.map +1 -0
- package/dist/codec-CX-19jac.js +8130 -0
- package/dist/codec-CX-19jac.js.map +1 -0
- package/dist/contract-BpxjDMHw.js +1105 -0
- package/dist/contract-BpxjDMHw.js.map +1 -0
- package/dist/contract-D0wCFcAN.cjs +1219 -0
- package/dist/contract-D0wCFcAN.cjs.map +1 -0
- package/dist/contract.cjs +58 -0
- package/dist/contract.d.cts +3 -0
- package/dist/contract.d.ts +3 -0
- package/dist/contract.js +2 -0
- package/dist/contracts.cjs +1050 -0
- package/dist/contracts.cjs.map +1 -0
- package/dist/contracts.d.cts +397 -0
- package/dist/contracts.d.cts.map +1 -0
- package/dist/contracts.d.ts +397 -0
- package/dist/contracts.d.ts.map +1 -0
- package/dist/contracts.js +1030 -0
- package/dist/contracts.js.map +1 -0
- package/dist/dev_wallet-BXWK5KR6.cjs +530 -0
- package/dist/dev_wallet-BXWK5KR6.cjs.map +1 -0
- package/dist/dev_wallet-C9eMQROk.js +497 -0
- package/dist/dev_wallet-C9eMQROk.js.map +1 -0
- package/dist/domainSeparator-B_vU_zUD.cjs +102 -0
- package/dist/domainSeparator-B_vU_zUD.cjs.map +1 -0
- package/dist/domainSeparator-CBCvxIj-.js +79 -0
- package/dist/domainSeparator-CBCvxIj-.js.map +1 -0
- package/dist/execution-CRDyKu45.d.ts +227 -0
- package/dist/execution-CRDyKu45.d.ts.map +1 -0
- package/dist/execution-DyxaIG4v.d.cts +227 -0
- package/dist/execution-DyxaIG4v.d.cts.map +1 -0
- package/dist/hex-DIcaALXL.js +112 -0
- package/dist/hex-DIcaALXL.js.map +1 -0
- package/dist/hex-DkGpiZ5e.cjs +189 -0
- package/dist/hex-DkGpiZ5e.cjs.map +1 -0
- package/dist/index--5LsCotr.d.ts +192 -0
- package/dist/index--5LsCotr.d.ts.map +1 -0
- package/dist/index-B5KqSHeL.d.cts +192 -0
- package/dist/index-B5KqSHeL.d.cts.map +1 -0
- package/dist/index-BZ0O5jZG.d.cts +163 -0
- package/dist/index-BZ0O5jZG.d.cts.map +1 -0
- package/dist/index-BuPQcAK2.d.ts +23 -0
- package/dist/index-BuPQcAK2.d.ts.map +1 -0
- package/dist/index-ByNNqY7S.d.cts +83 -0
- package/dist/index-ByNNqY7S.d.cts.map +1 -0
- package/dist/index-C-M-4jMR.d.cts +263 -0
- package/dist/index-C-M-4jMR.d.cts.map +1 -0
- package/dist/index-C97zw2rk.d.ts +137 -0
- package/dist/index-C97zw2rk.d.ts.map +1 -0
- package/dist/index-CIHK7Ew9.d.cts +303 -0
- package/dist/index-CIHK7Ew9.d.cts.map +1 -0
- package/dist/index-CIHK7Ew9.d.ts +303 -0
- package/dist/index-CIHK7Ew9.d.ts.map +1 -0
- package/dist/index-CXuO2Zjx.d.ts +263 -0
- package/dist/index-CXuO2Zjx.d.ts.map +1 -0
- package/dist/index-DOEBWXY2.d.cts +137 -0
- package/dist/index-DOEBWXY2.d.cts.map +1 -0
- package/dist/index-DzrLv3EA.d.cts +82 -0
- package/dist/index-DzrLv3EA.d.cts.map +1 -0
- package/dist/index-DzrLv3EA.d.ts +82 -0
- package/dist/index-DzrLv3EA.d.ts.map +1 -0
- package/dist/index-fdTURpBk.d.ts +83 -0
- package/dist/index-fdTURpBk.d.ts.map +1 -0
- package/dist/index-sAzHHayu.d.ts +163 -0
- package/dist/index-sAzHHayu.d.ts.map +1 -0
- package/dist/index-uQqRk9Ww.d.cts +23 -0
- package/dist/index-uQqRk9Ww.d.cts.map +1 -0
- package/dist/index.cjs +478 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +173 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.ts +173 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +231 -0
- package/dist/index.js.map +1 -0
- package/dist/provider.cjs +101 -0
- package/dist/provider.cjs.map +1 -0
- package/dist/provider.d.cts +2 -0
- package/dist/provider.d.ts +2 -0
- package/dist/provider.js +76 -0
- package/dist/provider.js.map +1 -0
- package/dist/readError-BVbfTMLv.cjs +604 -0
- package/dist/readError-BVbfTMLv.cjs.map +1 -0
- package/dist/readError-Dn_XN98x.js +551 -0
- package/dist/readError-Dn_XN98x.js.map +1 -0
- package/dist/readViews-BKJtE5J3.d.cts +594 -0
- package/dist/readViews-BKJtE5J3.d.cts.map +1 -0
- package/dist/readViews-C_FX8wby.d.ts +594 -0
- package/dist/readViews-C_FX8wby.d.ts.map +1 -0
- package/dist/rolldown-runtime-D6vf50IK.cjs +28 -0
- package/dist/sendInvocation-2EZanZZr.cjs +661 -0
- package/dist/sendInvocation-2EZanZZr.cjs.map +1 -0
- package/dist/sendInvocation-C4ruTC-9.js +505 -0
- package/dist/sendInvocation-C4ruTC-9.js.map +1 -0
- package/dist/sign-BewmV_EL.cjs +139 -0
- package/dist/sign-BewmV_EL.cjs.map +1 -0
- package/dist/sign-DVIRyW8Y.js +122 -0
- package/dist/sign-DVIRyW8Y.js.map +1 -0
- package/dist/sign-Ve0eetRO.d.ts +48 -0
- package/dist/sign-Ve0eetRO.d.ts.map +1 -0
- package/dist/sign-eUT0iGQG.d.cts +48 -0
- package/dist/sign-eUT0iGQG.d.cts.map +1 -0
- package/dist/signed-op.cjs +9 -0
- package/dist/signed-op.d.cts +3 -0
- package/dist/signed-op.d.ts +3 -0
- package/dist/signed-op.js +3 -0
- package/dist/signedOp-Bluo0OAd.cjs +183 -0
- package/dist/signedOp-Bluo0OAd.cjs.map +1 -0
- package/dist/signedOp-x4fakrr4.js +166 -0
- package/dist/signedOp-x4fakrr4.js.map +1 -0
- package/dist/signed_op-BzVbBgv4.js +154 -0
- package/dist/signed_op-BzVbBgv4.js.map +1 -0
- package/dist/signed_op-DFgQ2yFj.d.ts +58 -0
- package/dist/signed_op-DFgQ2yFj.d.ts.map +1 -0
- package/dist/signed_op-LwxrDud8.d.cts +58 -0
- package/dist/signed_op-LwxrDud8.d.cts.map +1 -0
- package/dist/signed_op-z_8fqAi1.cjs +175 -0
- package/dist/signed_op-z_8fqAi1.cjs.map +1 -0
- package/dist/signers-BFP84wJP.cjs +137 -0
- package/dist/signers-BFP84wJP.cjs.map +1 -0
- package/dist/signers-CzOSedwJ.js +120 -0
- package/dist/signers-CzOSedwJ.js.map +1 -0
- package/dist/signers.cjs +5 -0
- package/dist/signers.d.cts +3 -0
- package/dist/signers.d.ts +3 -0
- package/dist/signers.js +2 -0
- package/dist/size-506oTE28.js +91 -0
- package/dist/size-506oTE28.js.map +1 -0
- package/dist/size-OAFfOthl.cjs +108 -0
- package/dist/size-OAFfOthl.cjs.map +1 -0
- package/dist/transaction-CwkQxQOx.js +24 -0
- package/dist/transaction-CwkQxQOx.js.map +1 -0
- package/dist/transaction-DrSrCJ5y.cjs +47 -0
- package/dist/transaction-DrSrCJ5y.cjs.map +1 -0
- package/dist/transaction.cjs +13 -0
- package/dist/transaction.d.cts +3 -0
- package/dist/transaction.d.ts +3 -0
- package/dist/transaction.js +4 -0
- package/dist/transactionHash-CO9ajbvU.js +24 -0
- package/dist/transactionHash-CO9ajbvU.js.map +1 -0
- package/dist/transactionHash-D5yf4KoL.cjs +29 -0
- package/dist/transactionHash-D5yf4KoL.cjs.map +1 -0
- package/dist/transport-B-P16rs6.cjs +252 -0
- package/dist/transport-B-P16rs6.cjs.map +1 -0
- package/dist/transport-DqyoNtUy.js +234 -0
- package/dist/transport-DqyoNtUy.js.map +1 -0
- package/dist/transport.cjs +19 -0
- package/dist/transport.d.cts +3 -0
- package/dist/transport.d.ts +3 -0
- package/dist/transport.js +4 -0
- package/dist/types-BE40oD_Q.d.cts +18 -0
- package/dist/types-BE40oD_Q.d.cts.map +1 -0
- package/dist/types-BE40oD_Q.d.ts +18 -0
- package/dist/types-BE40oD_Q.d.ts.map +1 -0
- package/dist/validation-4w-vDGAi.cjs +543 -0
- package/dist/validation-4w-vDGAi.cjs.map +1 -0
- package/dist/validation-eXATmgO0.js +411 -0
- package/dist/validation-eXATmgO0.js.map +1 -0
- package/dist/wallet-Bthapk8i.cjs +709 -0
- package/dist/wallet-Bthapk8i.cjs.map +1 -0
- package/dist/wallet-CwWPYoHF.js +667 -0
- package/dist/wallet-CwWPYoHF.js.map +1 -0
- package/dist/wallet.cjs +27 -0
- package/dist/wallet.d.cts +3 -0
- package/dist/wallet.d.ts +3 -0
- package/dist/wallet.js +3 -0
- package/package.json +122 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contracts.cjs","names":["__gh_s","__gh_contract_spec","__gh_entrypoints","__gh_protocol","__gh_protocol_utils","spec","__gh_codecs","__gh_contract_spec","__gh_protocol","__gh_protocol_utils","spec"],"sources":["../src/contracts/erc20.ts","../src/contracts/erc20_permit.ts"],"sourcesContent":["// Generated from erc20.spec.xdr - ERC20 interface v0.1.68\n// Generated from erc20.spec.xdr - ERC20Metadata interface v0.1.68\n// DO NOT EDIT. Re-run codegen to update.\n\nimport * as __gh_protocol from \"@thruputchain/protocol\";\nimport * as __gh_protocol_utils from \"@thruputchain/protocol/utils\";\nimport * as __gh_contract_spec from \"@thruputchain/contract-spec\";\nimport * as __gh_client_contract from \"../contract/index.js\";\n\nconst __gh_s = __gh_contract_spec.contractSpecString;\n\nconst __gh_entrypoints = {\n ERC20: {\n v0_1: {\n adjustAllowance: __gh_protocol.contractEntrypointID(\n __gh_protocol_utils.fromHex(\"d5acf88949a80342\"),\n ),\n allowance: __gh_protocol.contractEntrypointID(\n __gh_protocol_utils.fromHex(\"d296058ebcf260cb\"),\n ),\n deleteAllowance: __gh_protocol.contractEntrypointID(\n __gh_protocol_utils.fromHex(\"dafe89d86eaf8ddf\"),\n ),\n deleteBalance: __gh_protocol.contractEntrypointID(\n __gh_protocol_utils.fromHex(\"2924d916f07d51aa\"),\n ),\n getBalance: __gh_protocol.contractEntrypointID(\n __gh_protocol_utils.fromHex(\"b921b642d31d7dac\"),\n ),\n getBalanceOf: __gh_protocol.contractEntrypointID(\n __gh_protocol_utils.fromHex(\"41ac95d6e06e2620\"),\n ),\n initialize: __gh_protocol.contractEntrypointID(\n __gh_protocol_utils.fromHex(\"18944c3aa4944671\"),\n ),\n mint: __gh_protocol.contractEntrypointID(\n __gh_protocol_utils.fromHex(\"f3f3bd9dede066a3\"),\n ),\n totalSupply: __gh_protocol.contractEntrypointID(\n __gh_protocol_utils.fromHex(\"2cbfcd0cb5c3f962\"),\n ),\n transfer: __gh_protocol.contractEntrypointID(\n __gh_protocol_utils.fromHex(\"63285b3523f9dc3f\"),\n ),\n transferFrom: __gh_protocol.contractEntrypointID(\n __gh_protocol_utils.fromHex(\"695be60513fcc294\"),\n ),\n },\n },\n ERC20Metadata: {\n v0_1: {\n decimals: __gh_protocol.contractEntrypointID(\n __gh_protocol_utils.fromHex(\"d9462e42964991d0\"),\n ),\n initialize: __gh_protocol.contractEntrypointID(\n __gh_protocol_utils.fromHex(\"f65b96296d684b0b\"),\n ),\n name: __gh_protocol.contractEntrypointID(\n __gh_protocol_utils.fromHex(\"51ad51ee8a5d9dd8\"),\n ),\n symbol: __gh_protocol.contractEntrypointID(\n __gh_protocol_utils.fromHex(\"3ddac721aa5abdea\"),\n ),\n },\n },\n} as const;\n\nexport namespace thruput_erc20_if {\n export namespace v0_1 {\n export namespace error {\n export type ERC20Error = 1n | 2n | 3n | 4n | 5n | 100n;\n }\n\n export namespace events {\n export interface AllowanceChangeEvent extends __gh_client_contract.DecodedContractEvent<\n \"AllowanceChangeEvent\",\n {\n owner: __gh_protocol.ContractAddress;\n spender: __gh_protocol.ContractAddress;\n },\n { difference: bigint }\n > {}\n\n export interface AllowanceChangeEventFilter {\n owner?: __gh_client_contract.ContractEventFilterValue<__gh_protocol.ContractAddress>;\n spender?: __gh_client_contract.ContractEventFilterValue<__gh_protocol.ContractAddress>;\n }\n\n export interface AllowanceDeleteEvent extends __gh_client_contract.DecodedContractEvent<\n \"AllowanceDeleteEvent\",\n {\n owner: __gh_protocol.ContractAddress;\n spender: __gh_protocol.ContractAddress;\n },\n { removed: bigint }\n > {}\n\n export interface AllowanceDeleteEventFilter {\n owner?: __gh_client_contract.ContractEventFilterValue<__gh_protocol.ContractAddress>;\n spender?: __gh_client_contract.ContractEventFilterValue<__gh_protocol.ContractAddress>;\n }\n\n export interface MintEvent extends __gh_client_contract.DecodedContractEvent<\n \"MintEvent\",\n { to: __gh_protocol.ContractAddress },\n { amount: bigint }\n > {}\n\n export interface MintEventFilter {\n to?: __gh_client_contract.ContractEventFilterValue<__gh_protocol.ContractAddress>;\n }\n\n export interface TransferEvent extends __gh_client_contract.DecodedContractEvent<\n \"TransferEvent\",\n {\n from: __gh_protocol.ContractAddress;\n to: __gh_protocol.ContractAddress;\n },\n { amount: bigint }\n > {}\n\n export interface TransferEventFilter {\n from?: __gh_client_contract.ContractEventFilterValue<__gh_protocol.ContractAddress>;\n to?: __gh_client_contract.ContractEventFilterValue<__gh_protocol.ContractAddress>;\n }\n }\n }\n}\n\nexport namespace ERC20 {\n export namespace v0_1 {\n export interface AdjustAllowanceArgs {\n spender: __gh_protocol.ContractAddress;\n difference: bigint;\n }\n export type AdjustAllowanceResult = void;\n\n export interface AllowanceArgs {\n owner: __gh_protocol.ContractAddress;\n spender: __gh_protocol.ContractAddress;\n }\n export type AllowanceResult = bigint;\n\n export interface DeleteAllowanceArgs {\n spender: __gh_protocol.ContractAddress;\n }\n export type DeleteAllowanceResult = void;\n\n export type DeleteBalanceArgs = void;\n export type DeleteBalanceResult = void;\n\n export type GetBalanceArgs = void;\n export type GetBalanceResult = bigint;\n\n export interface GetBalanceOfArgs {\n addr: __gh_protocol.ContractAddress;\n }\n export type GetBalanceOfResult = bigint;\n\n export interface InitializeArgs {\n administrator: __gh_protocol.ContractAddress;\n }\n export type InitializeResult = void;\n\n export interface MintArgs {\n receiver: __gh_protocol.ContractAddress;\n amount: bigint;\n }\n export type MintResult = void;\n\n export type TotalSupplyArgs = void;\n export type TotalSupplyResult = bigint;\n\n export interface TransferArgs {\n receiver: __gh_protocol.ContractAddress;\n amount: bigint;\n }\n export type TransferResult = void;\n\n export interface TransferFromArgs {\n owner: __gh_protocol.ContractAddress;\n receiver: __gh_protocol.ContractAddress;\n amount: bigint;\n }\n export type TransferFromResult = void;\n\n export type DeclaredException = {\n kind: \"declared\";\n name: \"ERC20Error\";\n selector: 0xf63c8b1f5e7e2fe0n;\n value: __gh_codegen.thruput_erc20_if$v0_1$error$ERC20Error;\n };\n export type Exception =\n __gh_client_contract.ContractException<DeclaredException>;\n }\n}\n\nexport namespace ERC20Metadata {\n export namespace v0_1 {\n export type DecimalsArgs = void;\n export type DecimalsResult = bigint | null;\n\n export interface InitializeArgs {\n administrator: __gh_protocol.ContractAddress;\n name: string | null;\n symbol: string | null;\n decimals: bigint | null;\n }\n export type InitializeResult = void;\n\n export type NameArgs = void;\n export type NameResult = string | null;\n\n export type SymbolArgs = void;\n export type SymbolResult = string | null;\n\n export type DeclaredException = never;\n export type Exception =\n __gh_client_contract.ContractException<DeclaredException>;\n }\n}\n\nexport const spec: __gh_client_contract.ContractSpec = {\n interfaces: [\n {\n name: __gh_s(\"ERC20\"),\n vers: __gh_s(\"0.1.68\"),\n throws: [\n {\n selector: 0xf63c8b1f5e7e2fe0n,\n ty: {\n v: __gh_contract_spec.ContractTypeKind.Named,\n named: {\n crate_name: __gh_s(\"thruput-erc20-if\"),\n major: __gh_s(\"0.1\"),\n module_path: __gh_s(\"thruput_erc20_if::error\"),\n declared: __gh_s(\"ERC20Error\"),\n },\n },\n },\n ],\n methods: [\n {\n name: __gh_s(\"adjust_allowance\"),\n args: [\n {\n name: __gh_s(\"spender\"),\n ty: { v: __gh_contract_spec.ContractTypeKind.Address },\n },\n {\n name: __gh_s(\"difference\"),\n ty: { v: __gh_contract_spec.ContractTypeKind.I128 },\n },\n ],\n return_type: { v: __gh_contract_spec.ContractTypeKind.Void },\n effect: null,\n },\n {\n name: __gh_s(\"allowance\"),\n args: [\n {\n name: __gh_s(\"owner\"),\n ty: { v: __gh_contract_spec.ContractTypeKind.Address },\n },\n {\n name: __gh_s(\"spender\"),\n ty: { v: __gh_contract_spec.ContractTypeKind.Address },\n },\n ],\n return_type: { v: __gh_contract_spec.ContractTypeKind.I128 },\n effect: null,\n },\n {\n name: __gh_s(\"delete_allowance\"),\n args: [\n {\n name: __gh_s(\"spender\"),\n ty: { v: __gh_contract_spec.ContractTypeKind.Address },\n },\n ],\n return_type: { v: __gh_contract_spec.ContractTypeKind.Void },\n effect: null,\n },\n {\n name: __gh_s(\"delete_balance\"),\n args: [],\n return_type: { v: __gh_contract_spec.ContractTypeKind.Void },\n effect: null,\n },\n {\n name: __gh_s(\"get_balance\"),\n args: [],\n return_type: { v: __gh_contract_spec.ContractTypeKind.I128 },\n effect: null,\n },\n {\n name: __gh_s(\"get_balance_of\"),\n args: [\n {\n name: __gh_s(\"addr\"),\n ty: { v: __gh_contract_spec.ContractTypeKind.Address },\n },\n ],\n return_type: { v: __gh_contract_spec.ContractTypeKind.I128 },\n effect: null,\n },\n {\n name: __gh_s(\"initialize\"),\n args: [\n {\n name: __gh_s(\"administrator\"),\n ty: { v: __gh_contract_spec.ContractTypeKind.Address },\n },\n ],\n return_type: { v: __gh_contract_spec.ContractTypeKind.Void },\n effect: null,\n },\n {\n name: __gh_s(\"mint\"),\n args: [\n {\n name: __gh_s(\"receiver\"),\n ty: { v: __gh_contract_spec.ContractTypeKind.Address },\n },\n {\n name: __gh_s(\"amount\"),\n ty: { v: __gh_contract_spec.ContractTypeKind.I128 },\n },\n ],\n return_type: { v: __gh_contract_spec.ContractTypeKind.Void },\n effect: null,\n },\n {\n name: __gh_s(\"total_supply\"),\n args: [],\n return_type: { v: __gh_contract_spec.ContractTypeKind.I128 },\n effect: null,\n },\n {\n name: __gh_s(\"transfer\"),\n args: [\n {\n name: __gh_s(\"receiver\"),\n ty: { v: __gh_contract_spec.ContractTypeKind.Address },\n },\n {\n name: __gh_s(\"amount\"),\n ty: { v: __gh_contract_spec.ContractTypeKind.I128 },\n },\n ],\n return_type: { v: __gh_contract_spec.ContractTypeKind.Void },\n effect: null,\n },\n {\n name: __gh_s(\"transfer_from\"),\n args: [\n {\n name: __gh_s(\"owner\"),\n ty: { v: __gh_contract_spec.ContractTypeKind.Address },\n },\n {\n name: __gh_s(\"receiver\"),\n ty: { v: __gh_contract_spec.ContractTypeKind.Address },\n },\n {\n name: __gh_s(\"amount\"),\n ty: { v: __gh_contract_spec.ContractTypeKind.I128 },\n },\n ],\n return_type: { v: __gh_contract_spec.ContractTypeKind.Void },\n effect: null,\n },\n ],\n },\n {\n name: __gh_s(\"ERC20Metadata\"),\n vers: __gh_s(\"0.1.68\"),\n throws: [],\n methods: [\n {\n name: __gh_s(\"decimals\"),\n args: [],\n return_type: {\n v: __gh_contract_spec.ContractTypeKind.Option,\n option_inner: { v: __gh_contract_spec.ContractTypeKind.U32 },\n },\n effect: null,\n },\n {\n name: __gh_s(\"initialize\"),\n args: [\n {\n name: __gh_s(\"administrator\"),\n ty: { v: __gh_contract_spec.ContractTypeKind.Address },\n },\n {\n name: __gh_s(\"name\"),\n ty: {\n v: __gh_contract_spec.ContractTypeKind.Option,\n option_inner: { v: __gh_contract_spec.ContractTypeKind.String },\n },\n },\n {\n name: __gh_s(\"symbol\"),\n ty: {\n v: __gh_contract_spec.ContractTypeKind.Option,\n option_inner: { v: __gh_contract_spec.ContractTypeKind.String },\n },\n },\n {\n name: __gh_s(\"decimals\"),\n ty: {\n v: __gh_contract_spec.ContractTypeKind.Option,\n option_inner: { v: __gh_contract_spec.ContractTypeKind.U32 },\n },\n },\n ],\n return_type: { v: __gh_contract_spec.ContractTypeKind.Void },\n effect: null,\n },\n {\n name: __gh_s(\"name\"),\n args: [],\n return_type: {\n v: __gh_contract_spec.ContractTypeKind.Option,\n option_inner: { v: __gh_contract_spec.ContractTypeKind.String },\n },\n effect: null,\n },\n {\n name: __gh_s(\"symbol\"),\n args: [],\n return_type: {\n v: __gh_contract_spec.ContractTypeKind.Option,\n option_inner: { v: __gh_contract_spec.ContractTypeKind.String },\n },\n effect: null,\n },\n ],\n },\n ],\n type_defs: [\n {\n v: __gh_contract_spec.ContractTypeDefKind.TypeDefEnum,\n enum_def: {\n name: {\n crate_name: __gh_s(\"thruput-erc20-if\"),\n major: __gh_s(\"0.1\"),\n module_path: __gh_s(\"thruput_erc20_if::error\"),\n declared: __gh_s(\"ERC20Error\"),\n },\n variants: [\n { name: __gh_s(\"AlreadyInitialized\"), value: 1n },\n { name: __gh_s(\"MustBeContractOwner\"), value: 2n },\n { name: __gh_s(\"TooLarge\"), value: 3n },\n { name: __gh_s(\"BalanceNotZero\"), value: 4n },\n { name: __gh_s(\"NegativeAmount\"), value: 5n },\n { name: __gh_s(\"Internal\"), value: 100n },\n ],\n },\n },\n ],\n events: [\n {\n name: {\n crate_name: __gh_s(\"thruput-erc20-if\"),\n major: __gh_s(\"0.1\"),\n module_path: __gh_s(\"thruput_erc20_if::events\"),\n declared: __gh_s(\"AllowanceChangeEvent\"),\n },\n signature: __gh_protocol.topic(\n __gh_protocol_utils.fromHex(\n \"b607e0e1095d9b516d05fdb9ed63e6717aec2740bda162dd0d6336d4a19335f7\",\n ),\n ),\n topics: [\n {\n name: __gh_s(\"owner\"),\n ty: { v: __gh_contract_spec.ContractTypeKind.Address },\n },\n {\n name: __gh_s(\"spender\"),\n ty: { v: __gh_contract_spec.ContractTypeKind.Address },\n },\n ],\n fields: [\n {\n name: __gh_s(\"difference\"),\n ty: { v: __gh_contract_spec.ContractTypeKind.I128 },\n },\n ],\n },\n {\n name: {\n crate_name: __gh_s(\"thruput-erc20-if\"),\n major: __gh_s(\"0.1\"),\n module_path: __gh_s(\"thruput_erc20_if::events\"),\n declared: __gh_s(\"AllowanceDeleteEvent\"),\n },\n signature: __gh_protocol.topic(\n __gh_protocol_utils.fromHex(\n \"9384f33409fa51703bb4dc8d7f5b87e469840866bde189d8a263c7b3be110872\",\n ),\n ),\n topics: [\n {\n name: __gh_s(\"owner\"),\n ty: { v: __gh_contract_spec.ContractTypeKind.Address },\n },\n {\n name: __gh_s(\"spender\"),\n ty: { v: __gh_contract_spec.ContractTypeKind.Address },\n },\n ],\n fields: [\n {\n name: __gh_s(\"removed\"),\n ty: { v: __gh_contract_spec.ContractTypeKind.I128 },\n },\n ],\n },\n {\n name: {\n crate_name: __gh_s(\"thruput-erc20-if\"),\n major: __gh_s(\"0.1\"),\n module_path: __gh_s(\"thruput_erc20_if::events\"),\n declared: __gh_s(\"MintEvent\"),\n },\n signature: __gh_protocol.topic(\n __gh_protocol_utils.fromHex(\n \"4e939db8b4598c749291f2b23802902094b3e6e5b0c4de6995429e25493287fc\",\n ),\n ),\n topics: [\n {\n name: __gh_s(\"to\"),\n ty: { v: __gh_contract_spec.ContractTypeKind.Address },\n },\n ],\n fields: [\n {\n name: __gh_s(\"amount\"),\n ty: { v: __gh_contract_spec.ContractTypeKind.I128 },\n },\n ],\n },\n {\n name: {\n crate_name: __gh_s(\"thruput-erc20-if\"),\n major: __gh_s(\"0.1\"),\n module_path: __gh_s(\"thruput_erc20_if::events\"),\n declared: __gh_s(\"TransferEvent\"),\n },\n signature: __gh_protocol.topic(\n __gh_protocol_utils.fromHex(\n \"5229153abd7aabc422c9e2217845f087f3819787d3d72375155f4c65f2089cce\",\n ),\n ),\n topics: [\n {\n name: __gh_s(\"from\"),\n ty: { v: __gh_contract_spec.ContractTypeKind.Address },\n },\n {\n name: __gh_s(\"to\"),\n ty: { v: __gh_contract_spec.ContractTypeKind.Address },\n },\n ],\n fields: [\n {\n name: __gh_s(\"amount\"),\n ty: { v: __gh_contract_spec.ContractTypeKind.I128 },\n },\n ],\n },\n ],\n};\n\nconst __gh_codecs = __gh_client_contract.createContractCodecContext(\n spec.type_defs,\n);\n\nexport const ERC20 = {\n v0_1: {\n adjustAllowance: __gh_client_contract.defineContractMethod<\n ERC20.v0_1.AdjustAllowanceArgs,\n ERC20.v0_1.AdjustAllowanceResult,\n ERC20.v0_1.DeclaredException\n >({\n interfaceName: \"ERC20\",\n interfaceVersion: \"0.1.68\",\n abiName: \"adjust_allowance\",\n publicName: \"adjustAllowance\",\n entrypoint: __gh_entrypoints.ERC20.v0_1.adjustAllowance,\n effect: spec.interfaces[0]!.methods[0]!.effect,\n args: [\n {\n abiName: \"spender\",\n publicName: \"spender\",\n type: spec.interfaces[0]!.methods[0]!.args[0]!.ty,\n },\n {\n abiName: \"difference\",\n publicName: \"difference\",\n type: spec.interfaces[0]!.methods[0]!.args[1]!.ty,\n },\n ],\n returnType: spec.interfaces[0]!.methods[0]!.return_type,\n throws: [\n {\n selector: 0xf63c8b1f5e7e2fe0n,\n name: \"ERC20Error\",\n type: spec.interfaces[0]!.throws[0]!.ty,\n },\n ],\n codecs: __gh_codecs,\n }),\n allowance: __gh_client_contract.defineContractMethod<\n ERC20.v0_1.AllowanceArgs,\n ERC20.v0_1.AllowanceResult,\n ERC20.v0_1.DeclaredException\n >({\n interfaceName: \"ERC20\",\n interfaceVersion: \"0.1.68\",\n abiName: \"allowance\",\n publicName: \"allowance\",\n entrypoint: __gh_entrypoints.ERC20.v0_1.allowance,\n effect: spec.interfaces[0]!.methods[1]!.effect,\n args: [\n {\n abiName: \"owner\",\n publicName: \"owner\",\n type: spec.interfaces[0]!.methods[1]!.args[0]!.ty,\n },\n {\n abiName: \"spender\",\n publicName: \"spender\",\n type: spec.interfaces[0]!.methods[1]!.args[1]!.ty,\n },\n ],\n returnType: spec.interfaces[0]!.methods[1]!.return_type,\n throws: [\n {\n selector: 0xf63c8b1f5e7e2fe0n,\n name: \"ERC20Error\",\n type: spec.interfaces[0]!.throws[0]!.ty,\n },\n ],\n codecs: __gh_codecs,\n }),\n deleteAllowance: __gh_client_contract.defineContractMethod<\n ERC20.v0_1.DeleteAllowanceArgs,\n ERC20.v0_1.DeleteAllowanceResult,\n ERC20.v0_1.DeclaredException\n >({\n interfaceName: \"ERC20\",\n interfaceVersion: \"0.1.68\",\n abiName: \"delete_allowance\",\n publicName: \"deleteAllowance\",\n entrypoint: __gh_entrypoints.ERC20.v0_1.deleteAllowance,\n effect: spec.interfaces[0]!.methods[2]!.effect,\n args: [\n {\n abiName: \"spender\",\n publicName: \"spender\",\n type: spec.interfaces[0]!.methods[2]!.args[0]!.ty,\n },\n ],\n returnType: spec.interfaces[0]!.methods[2]!.return_type,\n throws: [\n {\n selector: 0xf63c8b1f5e7e2fe0n,\n name: \"ERC20Error\",\n type: spec.interfaces[0]!.throws[0]!.ty,\n },\n ],\n codecs: __gh_codecs,\n }),\n deleteBalance: __gh_client_contract.defineContractMethod<\n ERC20.v0_1.DeleteBalanceArgs,\n ERC20.v0_1.DeleteBalanceResult,\n ERC20.v0_1.DeclaredException\n >({\n interfaceName: \"ERC20\",\n interfaceVersion: \"0.1.68\",\n abiName: \"delete_balance\",\n publicName: \"deleteBalance\",\n entrypoint: __gh_entrypoints.ERC20.v0_1.deleteBalance,\n effect: spec.interfaces[0]!.methods[3]!.effect,\n args: [],\n returnType: spec.interfaces[0]!.methods[3]!.return_type,\n throws: [\n {\n selector: 0xf63c8b1f5e7e2fe0n,\n name: \"ERC20Error\",\n type: spec.interfaces[0]!.throws[0]!.ty,\n },\n ],\n codecs: __gh_codecs,\n }),\n getBalance: __gh_client_contract.defineContractMethod<\n ERC20.v0_1.GetBalanceArgs,\n ERC20.v0_1.GetBalanceResult,\n ERC20.v0_1.DeclaredException\n >({\n interfaceName: \"ERC20\",\n interfaceVersion: \"0.1.68\",\n abiName: \"get_balance\",\n publicName: \"getBalance\",\n entrypoint: __gh_entrypoints.ERC20.v0_1.getBalance,\n effect: spec.interfaces[0]!.methods[4]!.effect,\n args: [],\n returnType: spec.interfaces[0]!.methods[4]!.return_type,\n throws: [\n {\n selector: 0xf63c8b1f5e7e2fe0n,\n name: \"ERC20Error\",\n type: spec.interfaces[0]!.throws[0]!.ty,\n },\n ],\n codecs: __gh_codecs,\n }),\n getBalanceOf: __gh_client_contract.defineContractMethod<\n ERC20.v0_1.GetBalanceOfArgs,\n ERC20.v0_1.GetBalanceOfResult,\n ERC20.v0_1.DeclaredException\n >({\n interfaceName: \"ERC20\",\n interfaceVersion: \"0.1.68\",\n abiName: \"get_balance_of\",\n publicName: \"getBalanceOf\",\n entrypoint: __gh_entrypoints.ERC20.v0_1.getBalanceOf,\n effect: spec.interfaces[0]!.methods[5]!.effect,\n args: [\n {\n abiName: \"addr\",\n publicName: \"addr\",\n type: spec.interfaces[0]!.methods[5]!.args[0]!.ty,\n },\n ],\n returnType: spec.interfaces[0]!.methods[5]!.return_type,\n throws: [\n {\n selector: 0xf63c8b1f5e7e2fe0n,\n name: \"ERC20Error\",\n type: spec.interfaces[0]!.throws[0]!.ty,\n },\n ],\n codecs: __gh_codecs,\n }),\n initialize: __gh_client_contract.defineContractMethod<\n ERC20.v0_1.InitializeArgs,\n ERC20.v0_1.InitializeResult,\n ERC20.v0_1.DeclaredException\n >({\n interfaceName: \"ERC20\",\n interfaceVersion: \"0.1.68\",\n abiName: \"initialize\",\n publicName: \"initialize\",\n entrypoint: __gh_entrypoints.ERC20.v0_1.initialize,\n effect: spec.interfaces[0]!.methods[6]!.effect,\n args: [\n {\n abiName: \"administrator\",\n publicName: \"administrator\",\n type: spec.interfaces[0]!.methods[6]!.args[0]!.ty,\n },\n ],\n returnType: spec.interfaces[0]!.methods[6]!.return_type,\n throws: [\n {\n selector: 0xf63c8b1f5e7e2fe0n,\n name: \"ERC20Error\",\n type: spec.interfaces[0]!.throws[0]!.ty,\n },\n ],\n codecs: __gh_codecs,\n }),\n mint: __gh_client_contract.defineContractMethod<\n ERC20.v0_1.MintArgs,\n ERC20.v0_1.MintResult,\n ERC20.v0_1.DeclaredException\n >({\n interfaceName: \"ERC20\",\n interfaceVersion: \"0.1.68\",\n abiName: \"mint\",\n publicName: \"mint\",\n entrypoint: __gh_entrypoints.ERC20.v0_1.mint,\n effect: spec.interfaces[0]!.methods[7]!.effect,\n args: [\n {\n abiName: \"receiver\",\n publicName: \"receiver\",\n type: spec.interfaces[0]!.methods[7]!.args[0]!.ty,\n },\n {\n abiName: \"amount\",\n publicName: \"amount\",\n type: spec.interfaces[0]!.methods[7]!.args[1]!.ty,\n },\n ],\n returnType: spec.interfaces[0]!.methods[7]!.return_type,\n throws: [\n {\n selector: 0xf63c8b1f5e7e2fe0n,\n name: \"ERC20Error\",\n type: spec.interfaces[0]!.throws[0]!.ty,\n },\n ],\n codecs: __gh_codecs,\n }),\n totalSupply: __gh_client_contract.defineContractMethod<\n ERC20.v0_1.TotalSupplyArgs,\n ERC20.v0_1.TotalSupplyResult,\n ERC20.v0_1.DeclaredException\n >({\n interfaceName: \"ERC20\",\n interfaceVersion: \"0.1.68\",\n abiName: \"total_supply\",\n publicName: \"totalSupply\",\n entrypoint: __gh_entrypoints.ERC20.v0_1.totalSupply,\n effect: spec.interfaces[0]!.methods[8]!.effect,\n args: [],\n returnType: spec.interfaces[0]!.methods[8]!.return_type,\n throws: [\n {\n selector: 0xf63c8b1f5e7e2fe0n,\n name: \"ERC20Error\",\n type: spec.interfaces[0]!.throws[0]!.ty,\n },\n ],\n codecs: __gh_codecs,\n }),\n transfer: __gh_client_contract.defineContractMethod<\n ERC20.v0_1.TransferArgs,\n ERC20.v0_1.TransferResult,\n ERC20.v0_1.DeclaredException\n >({\n interfaceName: \"ERC20\",\n interfaceVersion: \"0.1.68\",\n abiName: \"transfer\",\n publicName: \"transfer\",\n entrypoint: __gh_entrypoints.ERC20.v0_1.transfer,\n effect: spec.interfaces[0]!.methods[9]!.effect,\n args: [\n {\n abiName: \"receiver\",\n publicName: \"receiver\",\n type: spec.interfaces[0]!.methods[9]!.args[0]!.ty,\n },\n {\n abiName: \"amount\",\n publicName: \"amount\",\n type: spec.interfaces[0]!.methods[9]!.args[1]!.ty,\n },\n ],\n returnType: spec.interfaces[0]!.methods[9]!.return_type,\n throws: [\n {\n selector: 0xf63c8b1f5e7e2fe0n,\n name: \"ERC20Error\",\n type: spec.interfaces[0]!.throws[0]!.ty,\n },\n ],\n codecs: __gh_codecs,\n }),\n transferFrom: __gh_client_contract.defineContractMethod<\n ERC20.v0_1.TransferFromArgs,\n ERC20.v0_1.TransferFromResult,\n ERC20.v0_1.DeclaredException\n >({\n interfaceName: \"ERC20\",\n interfaceVersion: \"0.1.68\",\n abiName: \"transfer_from\",\n publicName: \"transferFrom\",\n entrypoint: __gh_entrypoints.ERC20.v0_1.transferFrom,\n effect: spec.interfaces[0]!.methods[10]!.effect,\n args: [\n {\n abiName: \"owner\",\n publicName: \"owner\",\n type: spec.interfaces[0]!.methods[10]!.args[0]!.ty,\n },\n {\n abiName: \"receiver\",\n publicName: \"receiver\",\n type: spec.interfaces[0]!.methods[10]!.args[1]!.ty,\n },\n {\n abiName: \"amount\",\n publicName: \"amount\",\n type: spec.interfaces[0]!.methods[10]!.args[2]!.ty,\n },\n ],\n returnType: spec.interfaces[0]!.methods[10]!.return_type,\n throws: [\n {\n selector: 0xf63c8b1f5e7e2fe0n,\n name: \"ERC20Error\",\n type: spec.interfaces[0]!.throws[0]!.ty,\n },\n ],\n codecs: __gh_codecs,\n }),\n },\n} as const;\n\nexport const ERC20Metadata = {\n v0_1: {\n decimals: __gh_client_contract.defineContractMethod<\n ERC20Metadata.v0_1.DecimalsArgs,\n ERC20Metadata.v0_1.DecimalsResult,\n ERC20Metadata.v0_1.DeclaredException\n >({\n interfaceName: \"ERC20Metadata\",\n interfaceVersion: \"0.1.68\",\n abiName: \"decimals\",\n publicName: \"decimals\",\n entrypoint: __gh_entrypoints.ERC20Metadata.v0_1.decimals,\n effect: spec.interfaces[1]!.methods[0]!.effect,\n args: [],\n returnType: spec.interfaces[1]!.methods[0]!.return_type,\n throws: [],\n codecs: __gh_codecs,\n }),\n initialize: __gh_client_contract.defineContractMethod<\n ERC20Metadata.v0_1.InitializeArgs,\n ERC20Metadata.v0_1.InitializeResult,\n ERC20Metadata.v0_1.DeclaredException\n >({\n interfaceName: \"ERC20Metadata\",\n interfaceVersion: \"0.1.68\",\n abiName: \"initialize\",\n publicName: \"initialize\",\n entrypoint: __gh_entrypoints.ERC20Metadata.v0_1.initialize,\n effect: spec.interfaces[1]!.methods[1]!.effect,\n args: [\n {\n abiName: \"administrator\",\n publicName: \"administrator\",\n type: spec.interfaces[1]!.methods[1]!.args[0]!.ty,\n },\n {\n abiName: \"name\",\n publicName: \"name\",\n type: spec.interfaces[1]!.methods[1]!.args[1]!.ty,\n },\n {\n abiName: \"symbol\",\n publicName: \"symbol\",\n type: spec.interfaces[1]!.methods[1]!.args[2]!.ty,\n },\n {\n abiName: \"decimals\",\n publicName: \"decimals\",\n type: spec.interfaces[1]!.methods[1]!.args[3]!.ty,\n },\n ],\n returnType: spec.interfaces[1]!.methods[1]!.return_type,\n throws: [],\n codecs: __gh_codecs,\n }),\n name: __gh_client_contract.defineContractMethod<\n ERC20Metadata.v0_1.NameArgs,\n ERC20Metadata.v0_1.NameResult,\n ERC20Metadata.v0_1.DeclaredException\n >({\n interfaceName: \"ERC20Metadata\",\n interfaceVersion: \"0.1.68\",\n abiName: \"name\",\n publicName: \"name\",\n entrypoint: __gh_entrypoints.ERC20Metadata.v0_1.name,\n effect: spec.interfaces[1]!.methods[2]!.effect,\n args: [],\n returnType: spec.interfaces[1]!.methods[2]!.return_type,\n throws: [],\n codecs: __gh_codecs,\n }),\n symbol: __gh_client_contract.defineContractMethod<\n ERC20Metadata.v0_1.SymbolArgs,\n ERC20Metadata.v0_1.SymbolResult,\n ERC20Metadata.v0_1.DeclaredException\n >({\n interfaceName: \"ERC20Metadata\",\n interfaceVersion: \"0.1.68\",\n abiName: \"symbol\",\n publicName: \"symbol\",\n entrypoint: __gh_entrypoints.ERC20Metadata.v0_1.symbol,\n effect: spec.interfaces[1]!.methods[3]!.effect,\n args: [],\n returnType: spec.interfaces[1]!.methods[3]!.return_type,\n throws: [],\n codecs: __gh_codecs,\n }),\n },\n} as const;\n\nexport const thruput_erc20_if = {\n v0_1: {\n error: {\n ERC20Error: {\n AlreadyInitialized: 1n,\n MustBeContractOwner: 2n,\n TooLarge: 3n,\n BalanceNotZero: 4n,\n NegativeAmount: 5n,\n Internal: 100n,\n },\n },\n events: {\n AllowanceChangeEvent: __gh_client_contract.defineContractEvent<\n \"AllowanceChangeEvent\",\n thruput_erc20_if.v0_1.events.AllowanceChangeEvent[\"topics\"],\n thruput_erc20_if.v0_1.events.AllowanceChangeEvent[\"fields\"],\n thruput_erc20_if.v0_1.events.AllowanceChangeEventFilter\n >({\n name: \"AllowanceChangeEvent\",\n signature: spec.events[0]!.signature,\n topics: [\n {\n name: \"owner\",\n type: spec.events[0]!.topics[0]!.ty,\n representation: \"address\",\n },\n {\n name: \"spender\",\n type: spec.events[0]!.topics[1]!.ty,\n representation: \"address\",\n },\n ],\n fields: [{ name: \"difference\", type: spec.events[0]!.fields[0]!.ty }],\n codecs: __gh_codecs,\n }),\n AllowanceDeleteEvent: __gh_client_contract.defineContractEvent<\n \"AllowanceDeleteEvent\",\n thruput_erc20_if.v0_1.events.AllowanceDeleteEvent[\"topics\"],\n thruput_erc20_if.v0_1.events.AllowanceDeleteEvent[\"fields\"],\n thruput_erc20_if.v0_1.events.AllowanceDeleteEventFilter\n >({\n name: \"AllowanceDeleteEvent\",\n signature: spec.events[1]!.signature,\n topics: [\n {\n name: \"owner\",\n type: spec.events[1]!.topics[0]!.ty,\n representation: \"address\",\n },\n {\n name: \"spender\",\n type: spec.events[1]!.topics[1]!.ty,\n representation: \"address\",\n },\n ],\n fields: [{ name: \"removed\", type: spec.events[1]!.fields[0]!.ty }],\n codecs: __gh_codecs,\n }),\n MintEvent: __gh_client_contract.defineContractEvent<\n \"MintEvent\",\n thruput_erc20_if.v0_1.events.MintEvent[\"topics\"],\n thruput_erc20_if.v0_1.events.MintEvent[\"fields\"],\n thruput_erc20_if.v0_1.events.MintEventFilter\n >({\n name: \"MintEvent\",\n signature: spec.events[2]!.signature,\n topics: [\n {\n name: \"to\",\n type: spec.events[2]!.topics[0]!.ty,\n representation: \"address\",\n },\n ],\n fields: [{ name: \"amount\", type: spec.events[2]!.fields[0]!.ty }],\n codecs: __gh_codecs,\n }),\n TransferEvent: __gh_client_contract.defineContractEvent<\n \"TransferEvent\",\n thruput_erc20_if.v0_1.events.TransferEvent[\"topics\"],\n thruput_erc20_if.v0_1.events.TransferEvent[\"fields\"],\n thruput_erc20_if.v0_1.events.TransferEventFilter\n >({\n name: \"TransferEvent\",\n signature: spec.events[3]!.signature,\n topics: [\n {\n name: \"from\",\n type: spec.events[3]!.topics[0]!.ty,\n representation: \"address\",\n },\n {\n name: \"to\",\n type: spec.events[3]!.topics[1]!.ty,\n representation: \"address\",\n },\n ],\n fields: [{ name: \"amount\", type: spec.events[3]!.fields[0]!.ty }],\n codecs: __gh_codecs,\n }),\n },\n },\n} as const;\n\nexport type ERC20Event =\n | thruput_erc20_if.v0_1.events.AllowanceChangeEvent\n | thruput_erc20_if.v0_1.events.AllowanceDeleteEvent\n | thruput_erc20_if.v0_1.events.MintEvent\n | thruput_erc20_if.v0_1.events.TransferEvent;\n\nexport function decodeEvent(__gh_event: {\n topics: globalThis.Uint8Array[];\n data: globalThis.Uint8Array;\n}): ERC20Event | null {\n return (\n thruput_erc20_if.v0_1.events.AllowanceChangeEvent.decode(__gh_event) ??\n thruput_erc20_if.v0_1.events.AllowanceDeleteEvent.decode(__gh_event) ??\n thruput_erc20_if.v0_1.events.MintEvent.decode(__gh_event) ??\n thruput_erc20_if.v0_1.events.TransferEvent.decode(__gh_event)\n );\n}\n\n// The types the namespaces above refer to, under names no declaration can capture.\nexport namespace __gh_codegen {\n export type thruput_erc20_if$v0_1$error$ERC20Error =\n thruput_erc20_if.v0_1.error.ERC20Error;\n}\n","// Generated from erc20_permit.spec.xdr - ERC20Permit interface v0.1.68\n// DO NOT EDIT. Re-run codegen to update.\n\nimport * as __gh_protocol from \"@thruputchain/protocol\";\nimport * as __gh_protocol_utils from \"@thruputchain/protocol/utils\";\nimport * as __gh_contract_spec from \"@thruputchain/contract-spec\";\nimport * as __gh_client_contract from \"../contract/index.js\";\n\nconst __gh_s = __gh_contract_spec.contractSpecString;\n\nconst __gh_entrypoints = {\n ERC20Permit: {\n v0_1: {\n deleteAllowanceSigned: __gh_protocol.contractEntrypointID(\n __gh_protocol_utils.fromHex(\"0a791be04a1d1c4b\"),\n ),\n increaseAllowanceSigned: __gh_protocol.contractEntrypointID(\n __gh_protocol_utils.fromHex(\"3a47108e9850272e\"),\n ),\n transferFromSigned: __gh_protocol.contractEntrypointID(\n __gh_protocol_utils.fromHex(\"87c3df36183d4aec\"),\n ),\n },\n },\n} as const;\n\nexport namespace thruput_erc20_if {\n export namespace v0_1 {\n export namespace error {\n export type ERC20Error = 1n | 2n | 3n | 4n | 5n | 100n;\n }\n }\n}\n\nexport namespace thruput_erc20_permit_if {\n export namespace v0_1 {\n export interface DeleteAllowanceGrant {\n spender: __gh_protocol.ContractAddress;\n }\n\n export interface PermitGrant {\n spender: __gh_protocol.ContractAddress;\n amount: bigint;\n }\n\n export namespace error {\n export type ERC20PermitError = 1n | 2n;\n }\n }\n}\n\nexport namespace ERC20Permit {\n export namespace v0_1 {\n export interface DeleteAllowanceSignedArgs {\n grant: __gh_client_contract.SignedToken<__gh_codegen.thruput_erc20_permit_if$v0_1$DeleteAllowanceGrant>;\n }\n export type DeleteAllowanceSignedResult = void;\n\n export interface IncreaseAllowanceSignedArgs {\n grant: __gh_client_contract.SignedToken<__gh_codegen.thruput_erc20_permit_if$v0_1$PermitGrant>;\n }\n export type IncreaseAllowanceSignedResult = void;\n\n export interface TransferFromSignedArgs {\n grant: __gh_client_contract.SignedToken<__gh_codegen.thruput_erc20_permit_if$v0_1$PermitGrant>;\n receiver: __gh_protocol.ContractAddress;\n amount: bigint;\n }\n export type TransferFromSignedResult = void;\n\n export type DeclaredException =\n | {\n kind: \"declared\";\n name: \"ERC20PermitError\";\n selector: 0x1aaf2b9becb7ddc4n;\n value: __gh_codegen.thruput_erc20_permit_if$v0_1$error$ERC20PermitError;\n }\n | {\n kind: \"declared\";\n name: \"ERC20Error\";\n selector: 0xf63c8b1f5e7e2fe0n;\n value: __gh_codegen.thruput_erc20_if$v0_1$error$ERC20Error;\n };\n export type Exception =\n __gh_client_contract.ContractException<DeclaredException>;\n }\n}\n\nexport const spec: __gh_client_contract.ContractSpec = {\n interfaces: [\n {\n name: __gh_s(\"ERC20Permit\"),\n vers: __gh_s(\"0.1.68\"),\n throws: [\n {\n selector: 0x1aaf2b9becb7ddc4n,\n ty: {\n v: __gh_contract_spec.ContractTypeKind.Named,\n named: {\n crate_name: __gh_s(\"thruput-erc20-permit-if\"),\n major: __gh_s(\"0.1\"),\n module_path: __gh_s(\"thruput_erc20_permit_if::error\"),\n declared: __gh_s(\"ERC20PermitError\"),\n },\n },\n },\n {\n selector: 0xf63c8b1f5e7e2fe0n,\n ty: {\n v: __gh_contract_spec.ContractTypeKind.Named,\n named: {\n crate_name: __gh_s(\"thruput-erc20-if\"),\n major: __gh_s(\"0.1\"),\n module_path: __gh_s(\"thruput_erc20_if::error\"),\n declared: __gh_s(\"ERC20Error\"),\n },\n },\n },\n ],\n methods: [\n {\n name: __gh_s(\"delete_allowance_signed\"),\n args: [\n {\n name: __gh_s(\"grant\"),\n ty: {\n v: __gh_contract_spec.ContractTypeKind.SignedToken,\n signed_token_preimage: {\n preimage_type: {\n v: __gh_contract_spec.ContractTypeKind.Named,\n named: {\n crate_name: __gh_s(\"thruput-erc20-permit-if\"),\n major: __gh_s(\"0.1\"),\n module_path: __gh_s(\"thruput_erc20_permit_if\"),\n declared: __gh_s(\"DeleteAllowanceGrant\"),\n },\n },\n },\n },\n },\n ],\n return_type: { v: __gh_contract_spec.ContractTypeKind.Void },\n effect: null,\n },\n {\n name: __gh_s(\"increase_allowance_signed\"),\n args: [\n {\n name: __gh_s(\"grant\"),\n ty: {\n v: __gh_contract_spec.ContractTypeKind.SignedToken,\n signed_token_preimage: {\n preimage_type: {\n v: __gh_contract_spec.ContractTypeKind.Named,\n named: {\n crate_name: __gh_s(\"thruput-erc20-permit-if\"),\n major: __gh_s(\"0.1\"),\n module_path: __gh_s(\"thruput_erc20_permit_if\"),\n declared: __gh_s(\"PermitGrant\"),\n },\n },\n },\n },\n },\n ],\n return_type: { v: __gh_contract_spec.ContractTypeKind.Void },\n effect: null,\n },\n {\n name: __gh_s(\"transfer_from_signed\"),\n args: [\n {\n name: __gh_s(\"grant\"),\n ty: {\n v: __gh_contract_spec.ContractTypeKind.SignedToken,\n signed_token_preimage: {\n preimage_type: {\n v: __gh_contract_spec.ContractTypeKind.Named,\n named: {\n crate_name: __gh_s(\"thruput-erc20-permit-if\"),\n major: __gh_s(\"0.1\"),\n module_path: __gh_s(\"thruput_erc20_permit_if\"),\n declared: __gh_s(\"PermitGrant\"),\n },\n },\n },\n },\n },\n {\n name: __gh_s(\"receiver\"),\n ty: { v: __gh_contract_spec.ContractTypeKind.Address },\n },\n {\n name: __gh_s(\"amount\"),\n ty: { v: __gh_contract_spec.ContractTypeKind.I128 },\n },\n ],\n return_type: { v: __gh_contract_spec.ContractTypeKind.Void },\n effect: null,\n },\n ],\n },\n ],\n type_defs: [\n {\n v: __gh_contract_spec.ContractTypeDefKind.TypeDefEnum,\n enum_def: {\n name: {\n crate_name: __gh_s(\"thruput-erc20-if\"),\n major: __gh_s(\"0.1\"),\n module_path: __gh_s(\"thruput_erc20_if::error\"),\n declared: __gh_s(\"ERC20Error\"),\n },\n variants: [\n { name: __gh_s(\"AlreadyInitialized\"), value: 1n },\n { name: __gh_s(\"MustBeContractOwner\"), value: 2n },\n { name: __gh_s(\"TooLarge\"), value: 3n },\n { name: __gh_s(\"BalanceNotZero\"), value: 4n },\n { name: __gh_s(\"NegativeAmount\"), value: 5n },\n { name: __gh_s(\"Internal\"), value: 100n },\n ],\n },\n },\n {\n v: __gh_contract_spec.ContractTypeDefKind.TypeDefStruct,\n struct_def: {\n name: {\n crate_name: __gh_s(\"thruput-erc20-permit-if\"),\n major: __gh_s(\"0.1\"),\n module_path: __gh_s(\"thruput_erc20_permit_if\"),\n declared: __gh_s(\"DeleteAllowanceGrant\"),\n },\n fields: [\n {\n name: __gh_s(\"spender\"),\n ty: { v: __gh_contract_spec.ContractTypeKind.Address },\n },\n ],\n },\n },\n {\n v: __gh_contract_spec.ContractTypeDefKind.TypeDefStruct,\n struct_def: {\n name: {\n crate_name: __gh_s(\"thruput-erc20-permit-if\"),\n major: __gh_s(\"0.1\"),\n module_path: __gh_s(\"thruput_erc20_permit_if\"),\n declared: __gh_s(\"PermitGrant\"),\n },\n fields: [\n {\n name: __gh_s(\"spender\"),\n ty: { v: __gh_contract_spec.ContractTypeKind.Address },\n },\n {\n name: __gh_s(\"amount\"),\n ty: { v: __gh_contract_spec.ContractTypeKind.I128 },\n },\n ],\n },\n },\n {\n v: __gh_contract_spec.ContractTypeDefKind.TypeDefEnum,\n enum_def: {\n name: {\n crate_name: __gh_s(\"thruput-erc20-permit-if\"),\n major: __gh_s(\"0.1\"),\n module_path: __gh_s(\"thruput_erc20_permit_if::error\"),\n declared: __gh_s(\"ERC20PermitError\"),\n },\n variants: [\n { name: __gh_s(\"NotSpender\"), value: 1n },\n { name: __gh_s(\"ExceedsGrant\"), value: 2n },\n ],\n },\n },\n ],\n events: [],\n};\n\nconst __gh_codecs = __gh_client_contract.createContractCodecContext(\n spec.type_defs,\n);\n\nexport const ERC20Permit = {\n v0_1: {\n deleteAllowanceSigned: __gh_client_contract.defineContractMethod<\n ERC20Permit.v0_1.DeleteAllowanceSignedArgs,\n ERC20Permit.v0_1.DeleteAllowanceSignedResult,\n ERC20Permit.v0_1.DeclaredException\n >({\n interfaceName: \"ERC20Permit\",\n interfaceVersion: \"0.1.68\",\n abiName: \"delete_allowance_signed\",\n publicName: \"deleteAllowanceSigned\",\n entrypoint: __gh_entrypoints.ERC20Permit.v0_1.deleteAllowanceSigned,\n effect: spec.interfaces[0]!.methods[0]!.effect,\n args: [\n {\n abiName: \"grant\",\n publicName: \"grant\",\n type: spec.interfaces[0]!.methods[0]!.args[0]!.ty,\n },\n ],\n returnType: spec.interfaces[0]!.methods[0]!.return_type,\n throws: [\n {\n selector: 0x1aaf2b9becb7ddc4n,\n name: \"ERC20PermitError\",\n type: spec.interfaces[0]!.throws[0]!.ty,\n },\n {\n selector: 0xf63c8b1f5e7e2fe0n,\n name: \"ERC20Error\",\n type: spec.interfaces[0]!.throws[1]!.ty,\n },\n ],\n codecs: __gh_codecs,\n }),\n increaseAllowanceSigned: __gh_client_contract.defineContractMethod<\n ERC20Permit.v0_1.IncreaseAllowanceSignedArgs,\n ERC20Permit.v0_1.IncreaseAllowanceSignedResult,\n ERC20Permit.v0_1.DeclaredException\n >({\n interfaceName: \"ERC20Permit\",\n interfaceVersion: \"0.1.68\",\n abiName: \"increase_allowance_signed\",\n publicName: \"increaseAllowanceSigned\",\n entrypoint: __gh_entrypoints.ERC20Permit.v0_1.increaseAllowanceSigned,\n effect: spec.interfaces[0]!.methods[1]!.effect,\n args: [\n {\n abiName: \"grant\",\n publicName: \"grant\",\n type: spec.interfaces[0]!.methods[1]!.args[0]!.ty,\n },\n ],\n returnType: spec.interfaces[0]!.methods[1]!.return_type,\n throws: [\n {\n selector: 0x1aaf2b9becb7ddc4n,\n name: \"ERC20PermitError\",\n type: spec.interfaces[0]!.throws[0]!.ty,\n },\n {\n selector: 0xf63c8b1f5e7e2fe0n,\n name: \"ERC20Error\",\n type: spec.interfaces[0]!.throws[1]!.ty,\n },\n ],\n codecs: __gh_codecs,\n }),\n transferFromSigned: __gh_client_contract.defineContractMethod<\n ERC20Permit.v0_1.TransferFromSignedArgs,\n ERC20Permit.v0_1.TransferFromSignedResult,\n ERC20Permit.v0_1.DeclaredException\n >({\n interfaceName: \"ERC20Permit\",\n interfaceVersion: \"0.1.68\",\n abiName: \"transfer_from_signed\",\n publicName: \"transferFromSigned\",\n entrypoint: __gh_entrypoints.ERC20Permit.v0_1.transferFromSigned,\n effect: spec.interfaces[0]!.methods[2]!.effect,\n args: [\n {\n abiName: \"grant\",\n publicName: \"grant\",\n type: spec.interfaces[0]!.methods[2]!.args[0]!.ty,\n },\n {\n abiName: \"receiver\",\n publicName: \"receiver\",\n type: spec.interfaces[0]!.methods[2]!.args[1]!.ty,\n },\n {\n abiName: \"amount\",\n publicName: \"amount\",\n type: spec.interfaces[0]!.methods[2]!.args[2]!.ty,\n },\n ],\n returnType: spec.interfaces[0]!.methods[2]!.return_type,\n throws: [\n {\n selector: 0x1aaf2b9becb7ddc4n,\n name: \"ERC20PermitError\",\n type: spec.interfaces[0]!.throws[0]!.ty,\n },\n {\n selector: 0xf63c8b1f5e7e2fe0n,\n name: \"ERC20Error\",\n type: spec.interfaces[0]!.throws[1]!.ty,\n },\n ],\n codecs: __gh_codecs,\n }),\n },\n} as const;\n\nexport const thruput_erc20_if = {\n v0_1: {\n error: {\n ERC20Error: {\n AlreadyInitialized: 1n,\n MustBeContractOwner: 2n,\n TooLarge: 3n,\n BalanceNotZero: 4n,\n NegativeAmount: 5n,\n Internal: 100n,\n },\n },\n },\n} as const;\n\nexport const thruput_erc20_permit_if = {\n v0_1: {\n error: {\n ERC20PermitError: {\n NotSpender: 1n,\n ExceedsGrant: 2n,\n },\n },\n },\n} as const;\n\n// The types the namespaces above refer to, under names no declaration can capture.\nexport namespace __gh_codegen {\n export type thruput_erc20_if$v0_1$error$ERC20Error =\n thruput_erc20_if.v0_1.error.ERC20Error;\n export type thruput_erc20_permit_if$v0_1$DeleteAllowanceGrant =\n thruput_erc20_permit_if.v0_1.DeleteAllowanceGrant;\n export type thruput_erc20_permit_if$v0_1$PermitGrant =\n thruput_erc20_permit_if.v0_1.PermitGrant;\n export type thruput_erc20_permit_if$v0_1$error$ERC20PermitError =\n thruput_erc20_permit_if.v0_1.error.ERC20PermitError;\n}\n"],"mappings":";;;;;;;;;;;;AASA,MAAMA,WAASC,4BAAmB;AAElC,MAAMC,qBAAmB;CACvB,OAAO,EACL,MAAM;EACJ,iBAAiBC,uBAAc,qBAC7BC,6BAAoB,QAAQ,kBAAkB,CAChD;EACA,WAAWD,uBAAc,qBACvBC,6BAAoB,QAAQ,kBAAkB,CAChD;EACA,iBAAiBD,uBAAc,qBAC7BC,6BAAoB,QAAQ,kBAAkB,CAChD;EACA,eAAeD,uBAAc,qBAC3BC,6BAAoB,QAAQ,kBAAkB,CAChD;EACA,YAAYD,uBAAc,qBACxBC,6BAAoB,QAAQ,kBAAkB,CAChD;EACA,cAAcD,uBAAc,qBAC1BC,6BAAoB,QAAQ,kBAAkB,CAChD;EACA,YAAYD,uBAAc,qBACxBC,6BAAoB,QAAQ,kBAAkB,CAChD;EACA,MAAMD,uBAAc,qBAClBC,6BAAoB,QAAQ,kBAAkB,CAChD;EACA,aAAaD,uBAAc,qBACzBC,6BAAoB,QAAQ,kBAAkB,CAChD;EACA,UAAUD,uBAAc,qBACtBC,6BAAoB,QAAQ,kBAAkB,CAChD;EACA,cAAcD,uBAAc,qBAC1BC,6BAAoB,QAAQ,kBAAkB,CAChD;CACF,EACF;CACA,eAAe,EACb,MAAM;EACJ,UAAUD,uBAAc,qBACtBC,6BAAoB,QAAQ,kBAAkB,CAChD;EACA,YAAYD,uBAAc,qBACxBC,6BAAoB,QAAQ,kBAAkB,CAChD;EACA,MAAMD,uBAAc,qBAClBC,6BAAoB,QAAQ,kBAAkB,CAChD;EACA,QAAQD,uBAAc,qBACpBC,6BAAoB,QAAQ,kBAAkB,CAChD;CACF,EACF;AACF;AA6JA,M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,cAAc;AAChB,EACF,EACF,EACF"}
|
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
import { Tt as ContractSpec, at as ContractEvent, l as ContractMethod, lt as ContractEventFilterValue, pt as DecodedContractEvent, s as ContractException } from "./readViews-BKJtE5J3.cjs";
|
|
2
|
+
import { c as SignedToken, n as FixedBytes } from "./index-DOEBWXY2.cjs";
|
|
3
|
+
import { n as spec$4, r as thruput_signed_op_if, t as SignedOp } from "./signed_op-LwxrDud8.cjs";
|
|
4
|
+
import * as __gh_protocol from "@thruputchain/protocol";
|
|
5
|
+
|
|
6
|
+
//#region src/contracts/erc20.d.ts
|
|
7
|
+
declare namespace thruput_erc20_if {
|
|
8
|
+
namespace v0_1 {
|
|
9
|
+
namespace error {
|
|
10
|
+
type ERC20Error = 1n | 2n | 3n | 4n | 5n | 100n;
|
|
11
|
+
}
|
|
12
|
+
namespace events {
|
|
13
|
+
interface AllowanceChangeEvent extends DecodedContractEvent<"AllowanceChangeEvent", {
|
|
14
|
+
owner: __gh_protocol.ContractAddress;
|
|
15
|
+
spender: __gh_protocol.ContractAddress;
|
|
16
|
+
}, {
|
|
17
|
+
difference: bigint;
|
|
18
|
+
}> {}
|
|
19
|
+
interface AllowanceChangeEventFilter {
|
|
20
|
+
owner?: ContractEventFilterValue<__gh_protocol.ContractAddress>;
|
|
21
|
+
spender?: ContractEventFilterValue<__gh_protocol.ContractAddress>;
|
|
22
|
+
}
|
|
23
|
+
interface AllowanceDeleteEvent extends DecodedContractEvent<"AllowanceDeleteEvent", {
|
|
24
|
+
owner: __gh_protocol.ContractAddress;
|
|
25
|
+
spender: __gh_protocol.ContractAddress;
|
|
26
|
+
}, {
|
|
27
|
+
removed: bigint;
|
|
28
|
+
}> {}
|
|
29
|
+
interface AllowanceDeleteEventFilter {
|
|
30
|
+
owner?: ContractEventFilterValue<__gh_protocol.ContractAddress>;
|
|
31
|
+
spender?: ContractEventFilterValue<__gh_protocol.ContractAddress>;
|
|
32
|
+
}
|
|
33
|
+
interface MintEvent extends DecodedContractEvent<"MintEvent", {
|
|
34
|
+
to: __gh_protocol.ContractAddress;
|
|
35
|
+
}, {
|
|
36
|
+
amount: bigint;
|
|
37
|
+
}> {}
|
|
38
|
+
interface MintEventFilter {
|
|
39
|
+
to?: ContractEventFilterValue<__gh_protocol.ContractAddress>;
|
|
40
|
+
}
|
|
41
|
+
interface TransferEvent extends DecodedContractEvent<"TransferEvent", {
|
|
42
|
+
from: __gh_protocol.ContractAddress;
|
|
43
|
+
to: __gh_protocol.ContractAddress;
|
|
44
|
+
}, {
|
|
45
|
+
amount: bigint;
|
|
46
|
+
}> {}
|
|
47
|
+
interface TransferEventFilter {
|
|
48
|
+
from?: ContractEventFilterValue<__gh_protocol.ContractAddress>;
|
|
49
|
+
to?: ContractEventFilterValue<__gh_protocol.ContractAddress>;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
declare namespace ERC20 {
|
|
55
|
+
namespace v0_1 {
|
|
56
|
+
interface AdjustAllowanceArgs {
|
|
57
|
+
spender: __gh_protocol.ContractAddress;
|
|
58
|
+
difference: bigint;
|
|
59
|
+
}
|
|
60
|
+
type AdjustAllowanceResult = void;
|
|
61
|
+
interface AllowanceArgs {
|
|
62
|
+
owner: __gh_protocol.ContractAddress;
|
|
63
|
+
spender: __gh_protocol.ContractAddress;
|
|
64
|
+
}
|
|
65
|
+
type AllowanceResult = bigint;
|
|
66
|
+
interface DeleteAllowanceArgs {
|
|
67
|
+
spender: __gh_protocol.ContractAddress;
|
|
68
|
+
}
|
|
69
|
+
type DeleteAllowanceResult = void;
|
|
70
|
+
type DeleteBalanceArgs = void;
|
|
71
|
+
type DeleteBalanceResult = void;
|
|
72
|
+
type GetBalanceArgs = void;
|
|
73
|
+
type GetBalanceResult = bigint;
|
|
74
|
+
interface GetBalanceOfArgs {
|
|
75
|
+
addr: __gh_protocol.ContractAddress;
|
|
76
|
+
}
|
|
77
|
+
type GetBalanceOfResult = bigint;
|
|
78
|
+
interface InitializeArgs {
|
|
79
|
+
administrator: __gh_protocol.ContractAddress;
|
|
80
|
+
}
|
|
81
|
+
type InitializeResult = void;
|
|
82
|
+
interface MintArgs {
|
|
83
|
+
receiver: __gh_protocol.ContractAddress;
|
|
84
|
+
amount: bigint;
|
|
85
|
+
}
|
|
86
|
+
type MintResult = void;
|
|
87
|
+
type TotalSupplyArgs = void;
|
|
88
|
+
type TotalSupplyResult = bigint;
|
|
89
|
+
interface TransferArgs {
|
|
90
|
+
receiver: __gh_protocol.ContractAddress;
|
|
91
|
+
amount: bigint;
|
|
92
|
+
}
|
|
93
|
+
type TransferResult = void;
|
|
94
|
+
interface TransferFromArgs {
|
|
95
|
+
owner: __gh_protocol.ContractAddress;
|
|
96
|
+
receiver: __gh_protocol.ContractAddress;
|
|
97
|
+
amount: bigint;
|
|
98
|
+
}
|
|
99
|
+
type TransferFromResult = void;
|
|
100
|
+
type DeclaredException = {
|
|
101
|
+
kind: "declared";
|
|
102
|
+
name: "ERC20Error";
|
|
103
|
+
selector: 0xf63c8b1f5e7e2fe0n;
|
|
104
|
+
value: __gh_codegen$2.thruput_erc20_if$v0_1$error$ERC20Error;
|
|
105
|
+
};
|
|
106
|
+
type Exception = ContractException<DeclaredException>;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
declare namespace ERC20Metadata {
|
|
110
|
+
namespace v0_1 {
|
|
111
|
+
type DecimalsArgs = void;
|
|
112
|
+
type DecimalsResult = bigint | null;
|
|
113
|
+
interface InitializeArgs {
|
|
114
|
+
administrator: __gh_protocol.ContractAddress;
|
|
115
|
+
name: string | null;
|
|
116
|
+
symbol: string | null;
|
|
117
|
+
decimals: bigint | null;
|
|
118
|
+
}
|
|
119
|
+
type InitializeResult = void;
|
|
120
|
+
type NameArgs = void;
|
|
121
|
+
type NameResult = string | null;
|
|
122
|
+
type SymbolArgs = void;
|
|
123
|
+
type SymbolResult = string | null;
|
|
124
|
+
type DeclaredException = never;
|
|
125
|
+
type Exception = ContractException<DeclaredException>;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
declare const spec$3: ContractSpec;
|
|
129
|
+
declare const ERC20: {
|
|
130
|
+
readonly v0_1: {
|
|
131
|
+
readonly adjustAllowance: ContractMethod<ERC20.v0_1.AdjustAllowanceArgs, void, ERC20.v0_1.DeclaredException>;
|
|
132
|
+
readonly allowance: ContractMethod<ERC20.v0_1.AllowanceArgs, bigint, ERC20.v0_1.DeclaredException>;
|
|
133
|
+
readonly deleteAllowance: ContractMethod<ERC20.v0_1.DeleteAllowanceArgs, void, ERC20.v0_1.DeclaredException>;
|
|
134
|
+
readonly deleteBalance: ContractMethod<void, void, ERC20.v0_1.DeclaredException>;
|
|
135
|
+
readonly getBalance: ContractMethod<void, bigint, ERC20.v0_1.DeclaredException>;
|
|
136
|
+
readonly getBalanceOf: ContractMethod<ERC20.v0_1.GetBalanceOfArgs, bigint, ERC20.v0_1.DeclaredException>;
|
|
137
|
+
readonly initialize: ContractMethod<ERC20.v0_1.InitializeArgs, void, ERC20.v0_1.DeclaredException>;
|
|
138
|
+
readonly mint: ContractMethod<ERC20.v0_1.MintArgs, void, ERC20.v0_1.DeclaredException>;
|
|
139
|
+
readonly totalSupply: ContractMethod<void, bigint, ERC20.v0_1.DeclaredException>;
|
|
140
|
+
readonly transfer: ContractMethod<ERC20.v0_1.TransferArgs, void, ERC20.v0_1.DeclaredException>;
|
|
141
|
+
readonly transferFrom: ContractMethod<ERC20.v0_1.TransferFromArgs, void, ERC20.v0_1.DeclaredException>;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
declare const ERC20Metadata: {
|
|
145
|
+
readonly v0_1: {
|
|
146
|
+
readonly decimals: ContractMethod<void, ERC20Metadata.v0_1.DecimalsResult, never>;
|
|
147
|
+
readonly initialize: ContractMethod<ERC20Metadata.v0_1.InitializeArgs, void, never>;
|
|
148
|
+
readonly name: ContractMethod<void, ERC20Metadata.v0_1.NameResult, never>;
|
|
149
|
+
readonly symbol: ContractMethod<void, ERC20Metadata.v0_1.SymbolResult, never>;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
declare const thruput_erc20_if: {
|
|
153
|
+
readonly v0_1: {
|
|
154
|
+
readonly error: {
|
|
155
|
+
readonly ERC20Error: {
|
|
156
|
+
readonly AlreadyInitialized: 1n;
|
|
157
|
+
readonly MustBeContractOwner: 2n;
|
|
158
|
+
readonly TooLarge: 3n;
|
|
159
|
+
readonly BalanceNotZero: 4n;
|
|
160
|
+
readonly NegativeAmount: 5n;
|
|
161
|
+
readonly Internal: 100n;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
readonly events: {
|
|
165
|
+
readonly AllowanceChangeEvent: ContractEvent<"AllowanceChangeEvent", {
|
|
166
|
+
owner: __gh_protocol.ContractAddress;
|
|
167
|
+
spender: __gh_protocol.ContractAddress;
|
|
168
|
+
}, {
|
|
169
|
+
difference: bigint;
|
|
170
|
+
}, thruput_erc20_if.v0_1.events.AllowanceChangeEventFilter>;
|
|
171
|
+
readonly AllowanceDeleteEvent: ContractEvent<"AllowanceDeleteEvent", {
|
|
172
|
+
owner: __gh_protocol.ContractAddress;
|
|
173
|
+
spender: __gh_protocol.ContractAddress;
|
|
174
|
+
}, {
|
|
175
|
+
removed: bigint;
|
|
176
|
+
}, thruput_erc20_if.v0_1.events.AllowanceDeleteEventFilter>;
|
|
177
|
+
readonly MintEvent: ContractEvent<"MintEvent", {
|
|
178
|
+
to: __gh_protocol.ContractAddress;
|
|
179
|
+
}, {
|
|
180
|
+
amount: bigint;
|
|
181
|
+
}, thruput_erc20_if.v0_1.events.MintEventFilter>;
|
|
182
|
+
readonly TransferEvent: ContractEvent<"TransferEvent", {
|
|
183
|
+
from: __gh_protocol.ContractAddress;
|
|
184
|
+
to: __gh_protocol.ContractAddress;
|
|
185
|
+
}, {
|
|
186
|
+
amount: bigint;
|
|
187
|
+
}, thruput_erc20_if.v0_1.events.TransferEventFilter>;
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
type ERC20Event = thruput_erc20_if.v0_1.events.AllowanceChangeEvent | thruput_erc20_if.v0_1.events.AllowanceDeleteEvent | thruput_erc20_if.v0_1.events.MintEvent | thruput_erc20_if.v0_1.events.TransferEvent;
|
|
192
|
+
declare function decodeEvent(__gh_event: {
|
|
193
|
+
topics: globalThis.Uint8Array[];
|
|
194
|
+
data: globalThis.Uint8Array;
|
|
195
|
+
}): ERC20Event | null;
|
|
196
|
+
declare namespace __gh_codegen$2 {
|
|
197
|
+
type thruput_erc20_if$v0_1$error$ERC20Error = thruput_erc20_if.v0_1.error.ERC20Error;
|
|
198
|
+
}
|
|
199
|
+
//#endregion
|
|
200
|
+
//#region src/contracts/default_wallet.d.ts
|
|
201
|
+
declare namespace default_wallet {
|
|
202
|
+
namespace v0_1 {
|
|
203
|
+
namespace $interface {
|
|
204
|
+
interface WalletCall {
|
|
205
|
+
target: __gh_protocol.ContractAddress;
|
|
206
|
+
entrypoint: FixedBytes<8>;
|
|
207
|
+
gas_limit: bigint;
|
|
208
|
+
calldata: globalThis.Uint8Array;
|
|
209
|
+
}
|
|
210
|
+
type WalletError = 1n | 2n | 3n | 4n | 5n | 6n | 7n;
|
|
211
|
+
interface WalletInitCall {
|
|
212
|
+
entrypoint: FixedBytes<8>;
|
|
213
|
+
gas_limit: bigint;
|
|
214
|
+
calldata: globalThis.Uint8Array;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
declare namespace DefaultWallet {
|
|
220
|
+
namespace v0_1 {
|
|
221
|
+
interface DeployArgs {
|
|
222
|
+
nonce: FixedBytes<32>;
|
|
223
|
+
contractHash: FixedBytes<32>;
|
|
224
|
+
amount: bigint;
|
|
225
|
+
initializer: __gh_codegen$1.default_wallet$v0_1$$interface$WalletInitCall | null;
|
|
226
|
+
}
|
|
227
|
+
type DeployResult = __gh_protocol.ContractAddress;
|
|
228
|
+
interface ExecuteArgs {
|
|
229
|
+
calls: __gh_codegen$1.default_wallet$v0_1$$interface$WalletCall[];
|
|
230
|
+
}
|
|
231
|
+
type ExecuteResult = globalThis.Uint8Array[];
|
|
232
|
+
type DeclaredException = {
|
|
233
|
+
kind: "declared";
|
|
234
|
+
name: "WalletError";
|
|
235
|
+
selector: 0x931d3297d37d1bdfn;
|
|
236
|
+
value: __gh_codegen$1.default_wallet$v0_1$$interface$WalletError;
|
|
237
|
+
};
|
|
238
|
+
type Exception = ContractException<DeclaredException>;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
declare const spec: ContractSpec;
|
|
242
|
+
declare const DefaultWallet: {
|
|
243
|
+
readonly v0_1: {
|
|
244
|
+
readonly deploy: ContractMethod<DefaultWallet.v0_1.DeployArgs, __gh_protocol.ContractAddress, DefaultWallet.v0_1.DeclaredException>;
|
|
245
|
+
readonly execute: ContractMethod<DefaultWallet.v0_1.ExecuteArgs, DefaultWallet.v0_1.ExecuteResult, DefaultWallet.v0_1.DeclaredException>;
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
declare const default_wallet: {
|
|
249
|
+
readonly v0_1: {
|
|
250
|
+
readonly $interface: {
|
|
251
|
+
readonly WalletError: {
|
|
252
|
+
readonly NotRootInvocation: 1n;
|
|
253
|
+
readonly InvalidAuthClaim: 2n;
|
|
254
|
+
readonly EmptyCallList: 3n;
|
|
255
|
+
readonly TooManyCalls: 4n;
|
|
256
|
+
readonly CallAborted: 5n;
|
|
257
|
+
readonly CallFaulted: 6n;
|
|
258
|
+
readonly ReturnDataTooLarge: 7n;
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
declare namespace __gh_codegen$1 {
|
|
264
|
+
type default_wallet$v0_1$$interface$WalletCall = default_wallet.v0_1.$interface.WalletCall;
|
|
265
|
+
type default_wallet$v0_1$$interface$WalletError = default_wallet.v0_1.$interface.WalletError;
|
|
266
|
+
type default_wallet$v0_1$$interface$WalletInitCall = default_wallet.v0_1.$interface.WalletInitCall;
|
|
267
|
+
}
|
|
268
|
+
//#endregion
|
|
269
|
+
//#region src/contracts/dev_wallet.d.ts
|
|
270
|
+
declare namespace DevWallet {
|
|
271
|
+
namespace v0_1 {
|
|
272
|
+
interface CreateWalletArgs {
|
|
273
|
+
nonce: FixedBytes<32>;
|
|
274
|
+
walletContractHash: FixedBytes<32>;
|
|
275
|
+
owner: FixedBytes<32>;
|
|
276
|
+
}
|
|
277
|
+
type CreateWalletResult = __gh_protocol.ContractAddress;
|
|
278
|
+
interface DeployArgs {
|
|
279
|
+
nonce: FixedBytes<32>;
|
|
280
|
+
contractHash: FixedBytes<32>;
|
|
281
|
+
}
|
|
282
|
+
type DeployResult = __gh_protocol.ContractAddress;
|
|
283
|
+
interface DoActionArgs {
|
|
284
|
+
invocationBytes: globalThis.Uint8Array;
|
|
285
|
+
}
|
|
286
|
+
type DoActionResult = void;
|
|
287
|
+
interface InitializeArgs {
|
|
288
|
+
owner: FixedBytes<32>;
|
|
289
|
+
}
|
|
290
|
+
type InitializeResult = void;
|
|
291
|
+
type DeclaredException = never;
|
|
292
|
+
type Exception = ContractException<DeclaredException>;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
declare const spec$1: ContractSpec;
|
|
296
|
+
declare const DevWallet: {
|
|
297
|
+
readonly v0_1: {
|
|
298
|
+
readonly createWallet: ContractMethod<DevWallet.v0_1.CreateWalletArgs, __gh_protocol.ContractAddress, never>;
|
|
299
|
+
readonly deploy: ContractMethod<DevWallet.v0_1.DeployArgs, __gh_protocol.ContractAddress, never>;
|
|
300
|
+
readonly doAction: ContractMethod<DevWallet.v0_1.DoActionArgs, void, never>;
|
|
301
|
+
readonly initialize: ContractMethod<DevWallet.v0_1.InitializeArgs, void, never>;
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
//#endregion
|
|
305
|
+
//#region src/contracts/erc20_permit.d.ts
|
|
306
|
+
declare namespace thruput_erc20_if$1 {
|
|
307
|
+
namespace v0_1 {
|
|
308
|
+
namespace error {
|
|
309
|
+
type ERC20Error = 1n | 2n | 3n | 4n | 5n | 100n;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
declare namespace thruput_erc20_permit_if {
|
|
314
|
+
namespace v0_1 {
|
|
315
|
+
interface DeleteAllowanceGrant {
|
|
316
|
+
spender: __gh_protocol.ContractAddress;
|
|
317
|
+
}
|
|
318
|
+
interface PermitGrant {
|
|
319
|
+
spender: __gh_protocol.ContractAddress;
|
|
320
|
+
amount: bigint;
|
|
321
|
+
}
|
|
322
|
+
namespace error {
|
|
323
|
+
type ERC20PermitError = 1n | 2n;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
declare namespace ERC20Permit {
|
|
328
|
+
namespace v0_1 {
|
|
329
|
+
interface DeleteAllowanceSignedArgs {
|
|
330
|
+
grant: SignedToken<__gh_codegen.thruput_erc20_permit_if$v0_1$DeleteAllowanceGrant>;
|
|
331
|
+
}
|
|
332
|
+
type DeleteAllowanceSignedResult = void;
|
|
333
|
+
interface IncreaseAllowanceSignedArgs {
|
|
334
|
+
grant: SignedToken<__gh_codegen.thruput_erc20_permit_if$v0_1$PermitGrant>;
|
|
335
|
+
}
|
|
336
|
+
type IncreaseAllowanceSignedResult = void;
|
|
337
|
+
interface TransferFromSignedArgs {
|
|
338
|
+
grant: SignedToken<__gh_codegen.thruput_erc20_permit_if$v0_1$PermitGrant>;
|
|
339
|
+
receiver: __gh_protocol.ContractAddress;
|
|
340
|
+
amount: bigint;
|
|
341
|
+
}
|
|
342
|
+
type TransferFromSignedResult = void;
|
|
343
|
+
type DeclaredException = {
|
|
344
|
+
kind: "declared";
|
|
345
|
+
name: "ERC20PermitError";
|
|
346
|
+
selector: 0x1aaf2b9becb7ddc4n;
|
|
347
|
+
value: __gh_codegen.thruput_erc20_permit_if$v0_1$error$ERC20PermitError;
|
|
348
|
+
} | {
|
|
349
|
+
kind: "declared";
|
|
350
|
+
name: "ERC20Error";
|
|
351
|
+
selector: 0xf63c8b1f5e7e2fe0n;
|
|
352
|
+
value: __gh_codegen.thruput_erc20_if$v0_1$error$ERC20Error;
|
|
353
|
+
};
|
|
354
|
+
type Exception = ContractException<DeclaredException>;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
declare const spec$2: ContractSpec;
|
|
358
|
+
declare const ERC20Permit: {
|
|
359
|
+
readonly v0_1: {
|
|
360
|
+
readonly deleteAllowanceSigned: ContractMethod<ERC20Permit.v0_1.DeleteAllowanceSignedArgs, void, ERC20Permit.v0_1.DeclaredException>;
|
|
361
|
+
readonly increaseAllowanceSigned: ContractMethod<ERC20Permit.v0_1.IncreaseAllowanceSignedArgs, void, ERC20Permit.v0_1.DeclaredException>;
|
|
362
|
+
readonly transferFromSigned: ContractMethod<ERC20Permit.v0_1.TransferFromSignedArgs, void, ERC20Permit.v0_1.DeclaredException>;
|
|
363
|
+
};
|
|
364
|
+
};
|
|
365
|
+
declare const thruput_erc20_if$1: {
|
|
366
|
+
readonly v0_1: {
|
|
367
|
+
readonly error: {
|
|
368
|
+
readonly ERC20Error: {
|
|
369
|
+
readonly AlreadyInitialized: 1n;
|
|
370
|
+
readonly MustBeContractOwner: 2n;
|
|
371
|
+
readonly TooLarge: 3n;
|
|
372
|
+
readonly BalanceNotZero: 4n;
|
|
373
|
+
readonly NegativeAmount: 5n;
|
|
374
|
+
readonly Internal: 100n;
|
|
375
|
+
};
|
|
376
|
+
};
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
declare const thruput_erc20_permit_if: {
|
|
380
|
+
readonly v0_1: {
|
|
381
|
+
readonly error: {
|
|
382
|
+
readonly ERC20PermitError: {
|
|
383
|
+
readonly NotSpender: 1n;
|
|
384
|
+
readonly ExceedsGrant: 2n;
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
};
|
|
389
|
+
declare namespace __gh_codegen {
|
|
390
|
+
type thruput_erc20_if$v0_1$error$ERC20Error = thruput_erc20_if$1.v0_1.error.ERC20Error;
|
|
391
|
+
type thruput_erc20_permit_if$v0_1$DeleteAllowanceGrant = thruput_erc20_permit_if.v0_1.DeleteAllowanceGrant;
|
|
392
|
+
type thruput_erc20_permit_if$v0_1$PermitGrant = thruput_erc20_permit_if.v0_1.PermitGrant;
|
|
393
|
+
type thruput_erc20_permit_if$v0_1$error$ERC20PermitError = thruput_erc20_permit_if.v0_1.error.ERC20PermitError;
|
|
394
|
+
}
|
|
395
|
+
//#endregion
|
|
396
|
+
export { DefaultWallet, spec as DefaultWalletSpec, DevWallet, spec$1 as DevWalletSpec, ERC20, type ERC20Event, ERC20Metadata, ERC20Permit, spec$2 as ERC20PermitSpec, spec$3 as ERC20Spec, SignedOp, spec$4 as SignedOpSpec, decodeEvent as decodeERC20Event, default_wallet, thruput_erc20_if, thruput_erc20_permit_if, thruput_signed_op_if };
|
|
397
|
+
//# sourceMappingURL=contracts.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contracts.d.cts","names":[],"sources":["../src/contracts/erc20.ts","../src/contracts/default_wallet.ts","../src/contracts/dev_wallet.ts","../src/contracts/erc20_permit.ts"],"mappings":";;;;;;kBAmEiB,gBAAA;EAAA,UACE,IAAA;IAAA,UACE,KAAA;MAAA,KACH,UAAA;IAAA;IAAA,UAGG,MAAA;MAAA,UACE,oBAAA,SAA6B,oBAAA;QAG1C,KAAA,EAAO,aAAA,CAAc,eAAA;QACrB,OAAA,EAAS,aAAA,CAAc,eAAA;MAAA;QAEvB,UAAA;MAAA;MAAA,UAGa,0BAAA;QACf,KAAA,GAAQ,wBAAA,CAA8C,aAAA,CAAc,eAAA;QACpE,OAAA,GAAU,wBAAA,CAA8C,aAAA,CAAc,eAAA;MAAA;MAAA,UAGvD,oBAAA,SAA6B,oBAAA;QAG1C,KAAA,EAAO,aAAA,CAAc,eAAA;QACrB,OAAA,EAAS,aAAA,CAAc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