@archdao/archdao-client 1.7.1 → 2.0.1
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/FUNCTIONS.md +4 -4
- package/README.md +93 -88
- package/dist/commonjs/funcs/adminChangeUserRole.d.ts +2 -5
- package/dist/commonjs/funcs/adminChangeUserRole.d.ts.map +1 -1
- package/dist/commonjs/funcs/adminChangeUserRole.js +5 -8
- package/dist/commonjs/funcs/adminChangeUserRole.js.map +1 -1
- package/dist/commonjs/funcs/adminListAuditLogs.d.ts +2 -3
- package/dist/commonjs/funcs/adminListAuditLogs.d.ts.map +1 -1
- package/dist/commonjs/funcs/adminListAuditLogs.js +5 -6
- package/dist/commonjs/funcs/adminListAuditLogs.js.map +1 -1
- package/dist/{esm/funcs/proposalListProposalStakes.d.ts → commonjs/funcs/authCreateNonce.d.ts} +4 -5
- package/dist/commonjs/funcs/authCreateNonce.d.ts.map +1 -0
- package/dist/commonjs/funcs/{authenticationCreateNonce.js → authCreateNonce.js} +7 -10
- package/dist/commonjs/funcs/authCreateNonce.js.map +1 -0
- package/dist/commonjs/funcs/{proposalListProposalStakes.d.ts → authListNonces.d.ts} +4 -5
- package/dist/commonjs/funcs/authListNonces.d.ts.map +1 -0
- package/dist/commonjs/funcs/{authenticationGetSelf.js → authListNonces.js} +12 -14
- package/dist/commonjs/funcs/authListNonces.js.map +1 -0
- package/dist/{esm/funcs/authenticationLogout.d.ts → commonjs/funcs/authLogin.d.ts} +4 -7
- package/dist/commonjs/funcs/authLogin.d.ts.map +1 -0
- package/dist/commonjs/funcs/{authenticationLogin.js → authLogin.js} +5 -8
- package/dist/commonjs/funcs/authLogin.js.map +1 -0
- package/dist/commonjs/funcs/{proposalListProposalTrades.d.ts → authLogout.d.ts} +4 -5
- package/dist/commonjs/funcs/authLogout.d.ts.map +1 -0
- package/dist/commonjs/funcs/{authenticationLogout.js → authLogout.js} +8 -11
- package/dist/commonjs/funcs/authLogout.js.map +1 -0
- package/dist/commonjs/funcs/organizationGetOrganization.d.ts +2 -5
- package/dist/commonjs/funcs/organizationGetOrganization.d.ts.map +1 -1
- package/dist/commonjs/funcs/organizationGetOrganization.js +3 -6
- package/dist/commonjs/funcs/organizationGetOrganization.js.map +1 -1
- package/dist/commonjs/funcs/organizationListOrganizations.d.ts +2 -7
- package/dist/commonjs/funcs/organizationListOrganizations.d.ts.map +1 -1
- package/dist/commonjs/funcs/organizationListOrganizations.js +4 -8
- package/dist/commonjs/funcs/organizationListOrganizations.js.map +1 -1
- package/dist/commonjs/funcs/proposalCreateProposal.d.ts +2 -3
- package/dist/commonjs/funcs/proposalCreateProposal.d.ts.map +1 -1
- package/dist/commonjs/funcs/proposalCreateProposal.js +6 -7
- package/dist/commonjs/funcs/proposalCreateProposal.js.map +1 -1
- package/dist/{esm/funcs/authenticationLogin.d.ts → commonjs/funcs/proposalDeleteProposal.d.ts} +4 -7
- package/dist/commonjs/funcs/proposalDeleteProposal.d.ts.map +1 -0
- package/dist/commonjs/funcs/{proposalCancelProposal.js → proposalDeleteProposal.js} +11 -13
- package/dist/commonjs/funcs/proposalDeleteProposal.js.map +1 -0
- package/dist/commonjs/funcs/proposalGetProposal.d.ts +3 -6
- package/dist/commonjs/funcs/proposalGetProposal.d.ts.map +1 -1
- package/dist/commonjs/funcs/proposalGetProposal.js +4 -7
- package/dist/commonjs/funcs/proposalGetProposal.js.map +1 -1
- package/dist/commonjs/funcs/proposalListProposals.d.ts +2 -7
- package/dist/commonjs/funcs/proposalListProposals.d.ts.map +1 -1
- package/dist/commonjs/funcs/proposalListProposals.js +3 -8
- package/dist/commonjs/funcs/proposalListProposals.js.map +1 -1
- package/dist/{esm/funcs/proposalListProposalTrades.d.ts → commonjs/funcs/proposalListStakes.d.ts} +4 -5
- package/dist/commonjs/funcs/proposalListStakes.d.ts.map +1 -0
- package/dist/commonjs/funcs/proposalListStakes.js +132 -0
- package/dist/commonjs/funcs/proposalListStakes.js.map +1 -0
- package/dist/commonjs/funcs/proposalListTrades.d.ts +18 -0
- package/dist/commonjs/funcs/proposalListTrades.d.ts.map +1 -0
- package/dist/commonjs/funcs/{proposalListProposalTrades.js → proposalListTrades.js} +19 -16
- package/dist/commonjs/funcs/proposalListTrades.js.map +1 -0
- package/dist/commonjs/funcs/{authenticationLogin.d.ts → proposalUpdateProposal.d.ts} +4 -7
- package/dist/commonjs/funcs/proposalUpdateProposal.d.ts.map +1 -0
- package/dist/commonjs/funcs/{organizationActivateRaise.js → proposalUpdateProposal.js} +14 -16
- package/dist/commonjs/funcs/proposalUpdateProposal.js.map +1 -0
- package/dist/commonjs/funcs/raiseGetRaise.d.ts +18 -0
- package/dist/commonjs/funcs/raiseGetRaise.d.ts.map +1 -0
- package/dist/commonjs/funcs/raiseGetRaise.js +127 -0
- package/dist/commonjs/funcs/raiseGetRaise.js.map +1 -0
- package/dist/commonjs/funcs/raiseListContributions.d.ts +18 -0
- package/dist/commonjs/funcs/raiseListContributions.d.ts.map +1 -0
- package/dist/commonjs/funcs/raiseListContributions.js +132 -0
- package/dist/commonjs/funcs/raiseListContributions.js.map +1 -0
- package/dist/commonjs/funcs/raiseListRaises.d.ts +17 -0
- package/dist/commonjs/funcs/raiseListRaises.d.ts.map +1 -0
- package/dist/commonjs/funcs/raiseListRaises.js +124 -0
- package/dist/commonjs/funcs/raiseListRaises.js.map +1 -0
- package/dist/{esm/funcs/proposalInitializeProposal.d.ts → commonjs/funcs/raiseUpdateRaise.d.ts} +4 -7
- package/dist/commonjs/funcs/raiseUpdateRaise.d.ts.map +1 -0
- package/dist/commonjs/funcs/{organizationChangeOrganizationStatus.js → raiseUpdateRaise.js} +12 -15
- package/dist/commonjs/funcs/raiseUpdateRaise.js.map +1 -0
- package/dist/commonjs/funcs/userGetUser.d.ts +15 -0
- package/dist/commonjs/funcs/userGetUser.d.ts.map +1 -0
- package/dist/commonjs/funcs/{proposalListProposalStakes.js → userGetUser.js} +11 -20
- package/dist/commonjs/funcs/userGetUser.js.map +1 -0
- package/dist/{esm/funcs/authenticationCreateNonce.d.ts → commonjs/funcs/userListUsers.d.ts} +4 -7
- package/dist/commonjs/funcs/userListUsers.d.ts.map +1 -0
- package/dist/commonjs/funcs/{adminListUsers.js → userListUsers.js} +9 -14
- package/dist/commonjs/funcs/userListUsers.js.map +1 -0
- package/dist/commonjs/funcs/userUpdateUser.d.ts +18 -0
- package/dist/commonjs/funcs/userUpdateUser.d.ts.map +1 -0
- package/dist/commonjs/funcs/{proposalInitializeProposal.js → userUpdateUser.js} +15 -17
- package/dist/commonjs/funcs/userUpdateUser.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +5 -5
- package/dist/commonjs/lib/config.d.ts.map +1 -1
- package/dist/commonjs/lib/config.js +8 -4
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/lib/security.js +1 -1
- package/dist/commonjs/lib/security.js.map +1 -1
- package/dist/commonjs/models/components/contactinformation.d.ts +0 -4
- package/dist/commonjs/models/components/contactinformation.d.ts.map +1 -1
- package/dist/commonjs/models/components/contactinformation.js +0 -6
- package/dist/commonjs/models/components/contactinformation.js.map +1 -1
- package/dist/commonjs/models/components/createproposal.d.ts +36 -0
- package/dist/commonjs/models/components/createproposal.d.ts.map +1 -0
- package/dist/commonjs/models/components/{proposalrequest.js → createproposal.js} +19 -19
- package/dist/commonjs/models/components/createproposal.js.map +1 -0
- package/dist/commonjs/models/components/decisionmarket.d.ts +31 -6
- package/dist/commonjs/models/components/decisionmarket.d.ts.map +1 -1
- package/dist/commonjs/models/components/decisionmarket.js +28 -8
- package/dist/commonjs/models/components/decisionmarket.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +4 -19
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +4 -19
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/organization.d.ts +16 -26
- package/dist/commonjs/models/components/organization.d.ts.map +1 -1
- package/dist/commonjs/models/components/organization.js +16 -19
- package/dist/commonjs/models/components/organization.js.map +1 -1
- package/dist/commonjs/models/components/pagination.d.ts +4 -16
- package/dist/commonjs/models/components/pagination.d.ts.map +1 -1
- package/dist/commonjs/models/components/pagination.js +6 -6
- package/dist/commonjs/models/components/pagination.js.map +1 -1
- package/dist/commonjs/models/components/proposal.d.ts +13 -52
- package/dist/commonjs/models/components/proposal.d.ts.map +1 -1
- package/dist/commonjs/models/components/proposal.js +14 -39
- package/dist/commonjs/models/components/proposal.js.map +1 -1
- package/dist/commonjs/models/components/proposalaction.d.ts +42 -431
- package/dist/commonjs/models/components/proposalaction.d.ts.map +1 -1
- package/dist/commonjs/models/components/proposalaction.js +33 -453
- package/dist/commonjs/models/components/proposalaction.js.map +1 -1
- package/dist/commonjs/models/components/proposalstatus.d.ts +43 -0
- package/dist/commonjs/models/components/proposalstatus.d.ts.map +1 -0
- package/dist/commonjs/models/components/{ok.js → proposalstatus.js} +20 -25
- package/dist/commonjs/models/components/proposalstatus.js.map +1 -0
- package/dist/commonjs/models/components/raise.d.ts +17 -51
- package/dist/commonjs/models/components/raise.d.ts.map +1 -1
- package/dist/commonjs/models/components/raise.js +22 -37
- package/dist/commonjs/models/components/raise.js.map +1 -1
- package/dist/commonjs/models/components/raiseallocation.d.ts +4 -14
- package/dist/commonjs/models/components/raiseallocation.d.ts.map +1 -1
- package/dist/commonjs/models/components/raiseallocation.js +4 -10
- package/dist/commonjs/models/components/raiseallocation.js.map +1 -1
- package/dist/commonjs/models/components/raisecontribution.d.ts +0 -6
- package/dist/commonjs/models/components/raisecontribution.d.ts.map +1 -1
- package/dist/commonjs/models/components/raisecontribution.js.map +1 -1
- package/dist/commonjs/models/components/raisestatus.d.ts +37 -0
- package/dist/commonjs/models/components/raisestatus.d.ts.map +1 -0
- package/dist/commonjs/models/components/{marketside.js → raisestatus.js} +18 -15
- package/dist/commonjs/models/components/raisestatus.js.map +1 -0
- package/dist/commonjs/models/components/security.d.ts +2 -2
- package/dist/commonjs/models/components/security.d.ts.map +1 -1
- package/dist/commonjs/models/components/security.js +2 -2
- package/dist/commonjs/models/components/security.js.map +1 -1
- package/dist/commonjs/models/components/token.d.ts +4 -4
- package/dist/commonjs/models/components/token.d.ts.map +1 -1
- package/dist/commonjs/models/components/token.js +4 -4
- package/dist/commonjs/models/components/token.js.map +1 -1
- package/dist/commonjs/models/components/trade.d.ts +26 -2
- package/dist/commonjs/models/components/trade.d.ts.map +1 -1
- package/dist/commonjs/models/components/trade.js +23 -4
- package/dist/commonjs/models/components/trade.js.map +1 -1
- package/dist/commonjs/models/components/treasury.d.ts +4 -22
- package/dist/commonjs/models/components/treasury.d.ts.map +1 -1
- package/dist/commonjs/models/components/treasury.js +4 -4
- package/dist/commonjs/models/components/treasury.js.map +1 -1
- package/dist/commonjs/models/components/updateproposal.d.ts +68 -0
- package/dist/commonjs/models/components/updateproposal.d.ts.map +1 -0
- package/dist/commonjs/models/components/updateproposal.js +97 -0
- package/dist/commonjs/models/components/updateproposal.js.map +1 -0
- package/dist/commonjs/models/components/user.d.ts +10 -8
- package/dist/commonjs/models/components/user.d.ts.map +1 -1
- package/dist/commonjs/models/components/user.js +10 -10
- package/dist/commonjs/models/components/user.js.map +1 -1
- package/dist/commonjs/models/errors/errorresponse.d.ts +103 -0
- package/dist/commonjs/models/errors/errorresponse.d.ts.map +1 -0
- package/dist/commonjs/models/errors/errorresponse.js +154 -0
- package/dist/commonjs/models/errors/errorresponse.js.map +1 -0
- package/dist/commonjs/models/errors/index.d.ts +1 -1
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +1 -1
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/operations/changeuserrole.d.ts +30 -0
- package/dist/commonjs/models/operations/changeuserrole.d.ts.map +1 -1
- package/dist/commonjs/models/operations/changeuserrole.js +30 -1
- package/dist/commonjs/models/operations/changeuserrole.js.map +1 -1
- package/dist/commonjs/models/operations/createnonce.d.ts +56 -1
- package/dist/commonjs/models/operations/createnonce.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createnonce.js +58 -1
- package/dist/commonjs/models/operations/createnonce.js.map +1 -1
- package/dist/commonjs/models/operations/createproposal.d.ts +35 -0
- package/dist/commonjs/models/operations/createproposal.d.ts.map +1 -0
- package/dist/commonjs/models/{components/paginatedauditlogs.js → operations/createproposal.js} +20 -23
- package/dist/commonjs/models/operations/createproposal.js.map +1 -0
- package/dist/commonjs/models/operations/deleteproposal.d.ts +57 -0
- package/dist/commonjs/models/operations/deleteproposal.d.ts.map +1 -0
- package/dist/commonjs/models/operations/deleteproposal.js +96 -0
- package/dist/commonjs/models/operations/deleteproposal.js.map +1 -0
- package/dist/commonjs/models/operations/getorganization.d.ts +33 -2
- package/dist/commonjs/models/operations/getorganization.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getorganization.js +33 -3
- package/dist/commonjs/models/operations/getorganization.js.map +1 -1
- package/dist/commonjs/models/operations/getproposal.d.ts +33 -2
- package/dist/commonjs/models/operations/getproposal.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getproposal.js +33 -3
- package/dist/commonjs/models/operations/getproposal.js.map +1 -1
- package/dist/commonjs/models/operations/getraise.d.ts +85 -0
- package/dist/commonjs/models/operations/getraise.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getraise.js +126 -0
- package/dist/commonjs/models/operations/getraise.js.map +1 -0
- package/dist/commonjs/models/operations/getuser.d.ts +60 -0
- package/dist/commonjs/models/operations/getuser.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getuser.js +99 -0
- package/dist/commonjs/models/operations/getuser.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +12 -7
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +12 -7
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listauditlogs.d.ts +32 -9
- package/dist/commonjs/models/operations/listauditlogs.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listauditlogs.js +32 -1
- package/dist/commonjs/models/operations/listauditlogs.js.map +1 -1
- package/dist/commonjs/models/operations/listcontributions.d.ts +91 -0
- package/dist/commonjs/models/operations/listcontributions.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listcontributions.js +132 -0
- package/dist/commonjs/models/operations/listcontributions.js.map +1 -0
- package/dist/commonjs/models/operations/listnonces.d.ts +35 -0
- package/dist/commonjs/models/operations/listnonces.d.ts.map +1 -0
- package/dist/commonjs/models/{components/userwithnoncesresponse.js → operations/listnonces.js} +20 -20
- package/dist/commonjs/models/operations/listnonces.js.map +1 -0
- package/dist/commonjs/models/operations/listorganizations.d.ts +65 -13
- package/dist/commonjs/models/operations/listorganizations.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listorganizations.js +56 -3
- package/dist/commonjs/models/operations/listorganizations.js.map +1 -1
- package/dist/commonjs/models/operations/listproposals.d.ts +38 -14
- package/dist/commonjs/models/operations/listproposals.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listproposals.js +35 -3
- package/dist/commonjs/models/operations/listproposals.js.map +1 -1
- package/dist/commonjs/models/operations/listraises.d.ts +96 -0
- package/dist/commonjs/models/operations/listraises.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listraises.js +134 -0
- package/dist/commonjs/models/operations/listraises.js.map +1 -0
- package/dist/commonjs/models/operations/liststakes.d.ts +91 -0
- package/dist/commonjs/models/operations/liststakes.d.ts.map +1 -0
- package/dist/commonjs/models/operations/liststakes.js +132 -0
- package/dist/commonjs/models/operations/liststakes.js.map +1 -0
- package/dist/commonjs/models/operations/listtrades.d.ts +119 -0
- package/dist/commonjs/models/operations/listtrades.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listtrades.js +153 -0
- package/dist/commonjs/models/operations/listtrades.js.map +1 -0
- package/dist/commonjs/models/operations/listusers.d.ts +33 -13
- package/dist/commonjs/models/operations/listusers.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listusers.js +32 -1
- package/dist/commonjs/models/operations/listusers.js.map +1 -1
- package/dist/commonjs/models/operations/login.d.ts +55 -9
- package/dist/commonjs/models/operations/login.d.ts.map +1 -1
- package/dist/commonjs/models/operations/login.js +57 -1
- package/dist/commonjs/models/operations/login.js.map +1 -1
- package/dist/commonjs/models/operations/logout.d.ts +30 -5
- package/dist/commonjs/models/operations/logout.d.ts.map +1 -1
- package/dist/commonjs/models/operations/logout.js +30 -3
- package/dist/commonjs/models/operations/logout.js.map +1 -1
- package/dist/commonjs/models/operations/updateproposal.d.ts +62 -0
- package/dist/commonjs/models/operations/updateproposal.d.ts.map +1 -0
- package/dist/commonjs/models/operations/updateproposal.js +110 -0
- package/dist/commonjs/models/operations/updateproposal.js.map +1 -0
- package/dist/commonjs/models/operations/updateraise.d.ts +92 -0
- package/dist/commonjs/models/operations/updateraise.d.ts.map +1 -0
- package/dist/commonjs/models/operations/updateraise.js +139 -0
- package/dist/commonjs/models/operations/updateraise.js.map +1 -0
- package/dist/commonjs/models/operations/updateuser.d.ts +89 -0
- package/dist/commonjs/models/operations/updateuser.d.ts.map +1 -0
- package/dist/commonjs/models/operations/updateuser.js +139 -0
- package/dist/commonjs/models/operations/updateuser.js.map +1 -0
- package/dist/commonjs/sdk/admin.d.ts +4 -18
- package/dist/commonjs/sdk/admin.d.ts.map +1 -1
- package/dist/commonjs/sdk/admin.js +2 -18
- package/dist/commonjs/sdk/admin.js.map +1 -1
- package/dist/commonjs/sdk/auth.d.ts +33 -0
- package/dist/commonjs/sdk/auth.d.ts.map +1 -0
- package/dist/commonjs/sdk/auth.js +52 -0
- package/dist/commonjs/sdk/auth.js.map +1 -0
- package/dist/commonjs/sdk/organization.d.ts +4 -38
- package/dist/commonjs/sdk/organization.d.ts.map +1 -1
- package/dist/commonjs/sdk/organization.js +2 -44
- package/dist/commonjs/sdk/organization.js.map +1 -1
- package/dist/commonjs/sdk/proposal.d.ts +18 -30
- package/dist/commonjs/sdk/proposal.d.ts.map +1 -1
- package/dist/commonjs/sdk/proposal.js +23 -35
- package/dist/commonjs/sdk/proposal.js.map +1 -1
- package/dist/commonjs/sdk/raise.d.ts +33 -0
- package/dist/commonjs/sdk/raise.d.ts.map +1 -0
- package/dist/commonjs/sdk/raise.js +52 -0
- package/dist/commonjs/sdk/raise.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +9 -3
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +11 -3
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/user.d.ts +23 -0
- package/dist/commonjs/sdk/user.d.ts.map +1 -0
- package/dist/commonjs/sdk/user.js +39 -0
- package/dist/commonjs/sdk/user.js.map +1 -0
- package/dist/esm/funcs/adminChangeUserRole.d.ts +2 -5
- package/dist/esm/funcs/adminChangeUserRole.d.ts.map +1 -1
- package/dist/esm/funcs/adminChangeUserRole.js +5 -8
- package/dist/esm/funcs/adminChangeUserRole.js.map +1 -1
- package/dist/esm/funcs/adminListAuditLogs.d.ts +2 -3
- package/dist/esm/funcs/adminListAuditLogs.d.ts.map +1 -1
- package/dist/esm/funcs/adminListAuditLogs.js +5 -6
- package/dist/esm/funcs/adminListAuditLogs.js.map +1 -1
- package/dist/esm/funcs/authCreateNonce.d.ts +18 -0
- package/dist/esm/funcs/authCreateNonce.d.ts.map +1 -0
- package/dist/esm/funcs/{authenticationCreateNonce.js → authCreateNonce.js} +6 -9
- package/dist/esm/funcs/authCreateNonce.js.map +1 -0
- package/dist/esm/funcs/authListNonces.d.ts +18 -0
- package/dist/esm/funcs/authListNonces.d.ts.map +1 -0
- package/dist/esm/funcs/{authenticationGetSelf.js → authListNonces.js} +11 -13
- package/dist/esm/funcs/authListNonces.js.map +1 -0
- package/dist/{commonjs/funcs/authenticationLogout.d.ts → esm/funcs/authLogin.d.ts} +4 -7
- package/dist/esm/funcs/authLogin.d.ts.map +1 -0
- package/dist/esm/funcs/{authenticationLogin.js → authLogin.js} +4 -7
- package/dist/esm/funcs/authLogin.js.map +1 -0
- package/dist/esm/funcs/authLogout.d.ts +18 -0
- package/dist/esm/funcs/authLogout.d.ts.map +1 -0
- package/dist/esm/funcs/{authenticationLogout.js → authLogout.js} +7 -10
- package/dist/esm/funcs/authLogout.js.map +1 -0
- package/dist/esm/funcs/organizationGetOrganization.d.ts +2 -5
- package/dist/esm/funcs/organizationGetOrganization.d.ts.map +1 -1
- package/dist/esm/funcs/organizationGetOrganization.js +3 -6
- package/dist/esm/funcs/organizationGetOrganization.js.map +1 -1
- package/dist/esm/funcs/organizationListOrganizations.d.ts +2 -7
- package/dist/esm/funcs/organizationListOrganizations.d.ts.map +1 -1
- package/dist/esm/funcs/organizationListOrganizations.js +4 -8
- package/dist/esm/funcs/organizationListOrganizations.js.map +1 -1
- package/dist/esm/funcs/proposalCreateProposal.d.ts +2 -3
- package/dist/esm/funcs/proposalCreateProposal.d.ts.map +1 -1
- package/dist/esm/funcs/proposalCreateProposal.js +6 -7
- package/dist/esm/funcs/proposalCreateProposal.js.map +1 -1
- package/dist/esm/funcs/proposalDeleteProposal.d.ts +18 -0
- package/dist/esm/funcs/proposalDeleteProposal.d.ts.map +1 -0
- package/dist/esm/funcs/{proposalCancelProposal.js → proposalDeleteProposal.js} +10 -12
- package/dist/esm/funcs/proposalDeleteProposal.js.map +1 -0
- package/dist/esm/funcs/proposalGetProposal.d.ts +3 -6
- package/dist/esm/funcs/proposalGetProposal.d.ts.map +1 -1
- package/dist/esm/funcs/proposalGetProposal.js +4 -7
- package/dist/esm/funcs/proposalGetProposal.js.map +1 -1
- package/dist/esm/funcs/proposalListProposals.d.ts +2 -7
- package/dist/esm/funcs/proposalListProposals.d.ts.map +1 -1
- package/dist/esm/funcs/proposalListProposals.js +3 -8
- package/dist/esm/funcs/proposalListProposals.js.map +1 -1
- package/dist/esm/funcs/proposalListStakes.d.ts +18 -0
- package/dist/esm/funcs/proposalListStakes.d.ts.map +1 -0
- package/dist/esm/funcs/{proposalListProposalStakes.js → proposalListStakes.js} +19 -16
- package/dist/esm/funcs/proposalListStakes.js.map +1 -0
- package/dist/esm/funcs/proposalListTrades.d.ts +18 -0
- package/dist/esm/funcs/proposalListTrades.d.ts.map +1 -0
- package/dist/esm/funcs/{proposalListProposalTrades.js → proposalListTrades.js} +19 -16
- package/dist/esm/funcs/proposalListTrades.js.map +1 -0
- package/dist/esm/funcs/proposalUpdateProposal.d.ts +18 -0
- package/dist/esm/funcs/proposalUpdateProposal.d.ts.map +1 -0
- package/dist/esm/funcs/{organizationActivateRaise.js → proposalUpdateProposal.js} +14 -16
- package/dist/esm/funcs/proposalUpdateProposal.js.map +1 -0
- package/dist/esm/funcs/raiseGetRaise.d.ts +18 -0
- package/dist/esm/funcs/raiseGetRaise.d.ts.map +1 -0
- package/dist/esm/funcs/raiseGetRaise.js +91 -0
- package/dist/esm/funcs/raiseGetRaise.js.map +1 -0
- package/dist/esm/funcs/raiseListContributions.d.ts +18 -0
- package/dist/esm/funcs/raiseListContributions.d.ts.map +1 -0
- package/dist/esm/funcs/raiseListContributions.js +96 -0
- package/dist/esm/funcs/raiseListContributions.js.map +1 -0
- package/dist/esm/funcs/raiseListRaises.d.ts +17 -0
- package/dist/esm/funcs/raiseListRaises.d.ts.map +1 -0
- package/dist/esm/funcs/raiseListRaises.js +88 -0
- package/dist/esm/funcs/raiseListRaises.js.map +1 -0
- package/dist/{commonjs/funcs/proposalInitializeProposal.d.ts → esm/funcs/raiseUpdateRaise.d.ts} +4 -7
- package/dist/esm/funcs/raiseUpdateRaise.d.ts.map +1 -0
- package/dist/esm/funcs/{organizationChangeOrganizationStatus.js → raiseUpdateRaise.js} +11 -14
- package/dist/esm/funcs/raiseUpdateRaise.js.map +1 -0
- package/dist/esm/funcs/userGetUser.d.ts +15 -0
- package/dist/esm/funcs/userGetUser.d.ts.map +1 -0
- package/dist/esm/funcs/{proposalInitializeProposal.js → userGetUser.js} +12 -18
- package/dist/esm/funcs/userGetUser.js.map +1 -0
- package/dist/{commonjs/funcs/authenticationCreateNonce.d.ts → esm/funcs/userListUsers.d.ts} +4 -7
- package/dist/esm/funcs/userListUsers.d.ts.map +1 -0
- package/dist/esm/funcs/{adminListUsers.js → userListUsers.js} +8 -13
- package/dist/esm/funcs/userListUsers.js.map +1 -0
- package/dist/esm/funcs/userUpdateUser.d.ts +18 -0
- package/dist/esm/funcs/userUpdateUser.d.ts.map +1 -0
- package/dist/esm/funcs/userUpdateUser.js +88 -0
- package/dist/esm/funcs/userUpdateUser.js.map +1 -0
- package/dist/esm/lib/config.d.ts +5 -5
- package/dist/esm/lib/config.d.ts.map +1 -1
- package/dist/esm/lib/config.js +8 -4
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/lib/security.js +1 -1
- package/dist/esm/lib/security.js.map +1 -1
- package/dist/esm/models/components/contactinformation.d.ts +0 -4
- package/dist/esm/models/components/contactinformation.d.ts.map +1 -1
- package/dist/esm/models/components/contactinformation.js +0 -6
- package/dist/esm/models/components/contactinformation.js.map +1 -1
- package/dist/esm/models/components/createproposal.d.ts +36 -0
- package/dist/esm/models/components/createproposal.d.ts.map +1 -0
- package/dist/esm/models/components/createproposal.js +38 -0
- package/dist/esm/models/components/createproposal.js.map +1 -0
- package/dist/esm/models/components/decisionmarket.d.ts +31 -6
- package/dist/esm/models/components/decisionmarket.d.ts.map +1 -1
- package/dist/esm/models/components/decisionmarket.js +27 -7
- package/dist/esm/models/components/decisionmarket.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +4 -19
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +4 -19
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/organization.d.ts +16 -26
- package/dist/esm/models/components/organization.d.ts.map +1 -1
- package/dist/esm/models/components/organization.js +16 -19
- package/dist/esm/models/components/organization.js.map +1 -1
- package/dist/esm/models/components/pagination.d.ts +4 -16
- package/dist/esm/models/components/pagination.d.ts.map +1 -1
- package/dist/esm/models/components/pagination.js +6 -6
- package/dist/esm/models/components/pagination.js.map +1 -1
- package/dist/esm/models/components/proposal.d.ts +13 -52
- package/dist/esm/models/components/proposal.d.ts.map +1 -1
- package/dist/esm/models/components/proposal.js +13 -38
- package/dist/esm/models/components/proposal.js.map +1 -1
- package/dist/esm/models/components/proposalaction.d.ts +42 -431
- package/dist/esm/models/components/proposalaction.d.ts.map +1 -1
- package/dist/esm/models/components/proposalaction.js +32 -430
- package/dist/esm/models/components/proposalaction.js.map +1 -1
- package/dist/esm/models/components/proposalstatus.d.ts +43 -0
- package/dist/esm/models/components/proposalstatus.d.ts.map +1 -0
- package/dist/esm/models/components/proposalstatus.js +29 -0
- package/dist/esm/models/components/proposalstatus.js.map +1 -0
- package/dist/esm/models/components/raise.d.ts +17 -51
- package/dist/esm/models/components/raise.d.ts.map +1 -1
- package/dist/esm/models/components/raise.js +21 -36
- package/dist/esm/models/components/raise.js.map +1 -1
- package/dist/esm/models/components/raiseallocation.d.ts +4 -14
- package/dist/esm/models/components/raiseallocation.d.ts.map +1 -1
- package/dist/esm/models/components/raiseallocation.js +4 -10
- package/dist/esm/models/components/raiseallocation.js.map +1 -1
- package/dist/esm/models/components/raisecontribution.d.ts +0 -6
- package/dist/esm/models/components/raisecontribution.d.ts.map +1 -1
- package/dist/esm/models/components/raisecontribution.js.map +1 -1
- package/dist/esm/models/components/raisestatus.d.ts +37 -0
- package/dist/esm/models/components/raisestatus.d.ts.map +1 -0
- package/dist/esm/models/components/raisestatus.js +28 -0
- package/dist/esm/models/components/raisestatus.js.map +1 -0
- package/dist/esm/models/components/security.d.ts +2 -2
- package/dist/esm/models/components/security.d.ts.map +1 -1
- package/dist/esm/models/components/security.js +2 -2
- package/dist/esm/models/components/security.js.map +1 -1
- package/dist/esm/models/components/token.d.ts +4 -4
- package/dist/esm/models/components/token.d.ts.map +1 -1
- package/dist/esm/models/components/token.js +4 -4
- package/dist/esm/models/components/token.js.map +1 -1
- package/dist/esm/models/components/trade.d.ts +26 -2
- package/dist/esm/models/components/trade.d.ts.map +1 -1
- package/dist/esm/models/components/trade.js +22 -3
- package/dist/esm/models/components/trade.js.map +1 -1
- package/dist/esm/models/components/treasury.d.ts +4 -22
- package/dist/esm/models/components/treasury.d.ts.map +1 -1
- package/dist/esm/models/components/treasury.js +4 -4
- package/dist/esm/models/components/treasury.js.map +1 -1
- package/dist/esm/models/components/updateproposal.d.ts +68 -0
- package/dist/esm/models/components/updateproposal.d.ts.map +1 -0
- package/dist/esm/models/components/updateproposal.js +59 -0
- package/dist/esm/models/components/updateproposal.js.map +1 -0
- package/dist/esm/models/components/user.d.ts +10 -8
- package/dist/esm/models/components/user.d.ts.map +1 -1
- package/dist/esm/models/components/user.js +10 -10
- package/dist/esm/models/components/user.js.map +1 -1
- package/dist/esm/models/errors/errorresponse.d.ts +103 -0
- package/dist/esm/models/errors/errorresponse.d.ts.map +1 -0
- package/dist/esm/models/errors/errorresponse.js +113 -0
- package/dist/esm/models/errors/errorresponse.js.map +1 -0
- package/dist/esm/models/errors/index.d.ts +1 -1
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +1 -1
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/operations/changeuserrole.d.ts +30 -0
- package/dist/esm/models/operations/changeuserrole.d.ts.map +1 -1
- package/dist/esm/models/operations/changeuserrole.js +27 -0
- package/dist/esm/models/operations/changeuserrole.js.map +1 -1
- package/dist/esm/models/operations/createnonce.d.ts +56 -1
- package/dist/esm/models/operations/createnonce.d.ts.map +1 -1
- package/dist/esm/models/operations/createnonce.js +53 -0
- package/dist/esm/models/operations/createnonce.js.map +1 -1
- package/dist/esm/models/operations/createproposal.d.ts +35 -0
- package/dist/esm/models/operations/createproposal.d.ts.map +1 -0
- package/dist/esm/models/operations/createproposal.js +34 -0
- package/dist/esm/models/operations/createproposal.js.map +1 -0
- package/dist/esm/models/operations/deleteproposal.d.ts +57 -0
- package/dist/esm/models/operations/deleteproposal.d.ts.map +1 -0
- package/dist/esm/models/operations/deleteproposal.js +56 -0
- package/dist/esm/models/operations/deleteproposal.js.map +1 -0
- package/dist/esm/models/operations/getorganization.d.ts +33 -2
- package/dist/esm/models/operations/getorganization.d.ts.map +1 -1
- package/dist/esm/models/operations/getorganization.js +30 -2
- package/dist/esm/models/operations/getorganization.js.map +1 -1
- package/dist/esm/models/operations/getproposal.d.ts +33 -2
- package/dist/esm/models/operations/getproposal.d.ts.map +1 -1
- package/dist/esm/models/operations/getproposal.js +30 -2
- package/dist/esm/models/operations/getproposal.js.map +1 -1
- package/dist/esm/models/operations/getraise.d.ts +85 -0
- package/dist/esm/models/operations/getraise.d.ts.map +1 -0
- package/dist/esm/models/operations/getraise.js +84 -0
- package/dist/esm/models/operations/getraise.js.map +1 -0
- package/dist/esm/models/operations/getuser.d.ts +60 -0
- package/dist/esm/models/operations/getuser.d.ts.map +1 -0
- package/dist/esm/models/operations/getuser.js +59 -0
- package/dist/esm/models/operations/getuser.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +12 -7
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +12 -7
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listauditlogs.d.ts +32 -9
- package/dist/esm/models/operations/listauditlogs.d.ts.map +1 -1
- package/dist/esm/models/operations/listauditlogs.js +29 -0
- package/dist/esm/models/operations/listauditlogs.js.map +1 -1
- package/dist/esm/models/operations/listcontributions.d.ts +91 -0
- package/dist/esm/models/operations/listcontributions.d.ts.map +1 -0
- package/dist/esm/models/operations/listcontributions.js +90 -0
- package/dist/esm/models/operations/listcontributions.js.map +1 -0
- package/dist/esm/models/operations/listnonces.d.ts +35 -0
- package/dist/esm/models/operations/listnonces.d.ts.map +1 -0
- package/dist/esm/models/operations/listnonces.js +34 -0
- package/dist/esm/models/operations/listnonces.js.map +1 -0
- package/dist/esm/models/operations/listorganizations.d.ts +65 -13
- package/dist/esm/models/operations/listorganizations.d.ts.map +1 -1
- package/dist/esm/models/operations/listorganizations.js +53 -2
- package/dist/esm/models/operations/listorganizations.js.map +1 -1
- package/dist/esm/models/operations/listproposals.d.ts +38 -14
- package/dist/esm/models/operations/listproposals.d.ts.map +1 -1
- package/dist/esm/models/operations/listproposals.js +32 -2
- package/dist/esm/models/operations/listproposals.js.map +1 -1
- package/dist/esm/models/operations/listraises.d.ts +96 -0
- package/dist/esm/models/operations/listraises.d.ts.map +1 -0
- package/dist/esm/models/operations/listraises.js +92 -0
- package/dist/esm/models/operations/listraises.js.map +1 -0
- package/dist/esm/models/operations/liststakes.d.ts +91 -0
- package/dist/esm/models/operations/liststakes.d.ts.map +1 -0
- package/dist/esm/models/operations/liststakes.js +90 -0
- package/dist/esm/models/operations/liststakes.js.map +1 -0
- package/dist/esm/models/operations/listtrades.d.ts +119 -0
- package/dist/esm/models/operations/listtrades.d.ts.map +1 -0
- package/dist/esm/models/operations/listtrades.js +111 -0
- package/dist/esm/models/operations/listtrades.js.map +1 -0
- package/dist/esm/models/operations/listusers.d.ts +33 -13
- package/dist/esm/models/operations/listusers.d.ts.map +1 -1
- package/dist/esm/models/operations/listusers.js +29 -0
- package/dist/esm/models/operations/listusers.js.map +1 -1
- package/dist/esm/models/operations/login.d.ts +55 -9
- package/dist/esm/models/operations/login.d.ts.map +1 -1
- package/dist/esm/models/operations/login.js +52 -0
- package/dist/esm/models/operations/login.js.map +1 -1
- package/dist/esm/models/operations/logout.d.ts +30 -5
- package/dist/esm/models/operations/logout.d.ts.map +1 -1
- package/dist/esm/models/operations/logout.js +27 -2
- package/dist/esm/models/operations/logout.js.map +1 -1
- package/dist/esm/models/operations/updateproposal.d.ts +62 -0
- package/dist/esm/models/operations/updateproposal.d.ts.map +1 -0
- package/dist/esm/models/operations/updateproposal.js +70 -0
- package/dist/esm/models/operations/updateproposal.js.map +1 -0
- package/dist/esm/models/operations/updateraise.d.ts +92 -0
- package/dist/esm/models/operations/updateraise.d.ts.map +1 -0
- package/dist/esm/models/operations/updateraise.js +97 -0
- package/dist/esm/models/operations/updateraise.js.map +1 -0
- package/dist/esm/models/operations/updateuser.d.ts +89 -0
- package/dist/esm/models/operations/updateuser.d.ts.map +1 -0
- package/dist/esm/models/operations/updateuser.js +97 -0
- package/dist/esm/models/operations/updateuser.js.map +1 -0
- package/dist/esm/sdk/admin.d.ts +4 -18
- package/dist/esm/sdk/admin.d.ts.map +1 -1
- package/dist/esm/sdk/admin.js +2 -18
- package/dist/esm/sdk/admin.js.map +1 -1
- package/dist/esm/sdk/auth.d.ts +33 -0
- package/dist/esm/sdk/auth.d.ts.map +1 -0
- package/dist/esm/sdk/auth.js +48 -0
- package/dist/esm/sdk/auth.js.map +1 -0
- package/dist/esm/sdk/organization.d.ts +4 -38
- package/dist/esm/sdk/organization.d.ts.map +1 -1
- package/dist/esm/sdk/organization.js +2 -44
- package/dist/esm/sdk/organization.js.map +1 -1
- package/dist/esm/sdk/proposal.d.ts +18 -30
- package/dist/esm/sdk/proposal.d.ts.map +1 -1
- package/dist/esm/sdk/proposal.js +23 -35
- package/dist/esm/sdk/proposal.js.map +1 -1
- package/dist/esm/sdk/raise.d.ts +33 -0
- package/dist/esm/sdk/raise.d.ts.map +1 -0
- package/dist/esm/sdk/raise.js +48 -0
- package/dist/esm/sdk/raise.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +9 -3
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +11 -3
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/user.d.ts +23 -0
- package/dist/esm/sdk/user.d.ts.map +1 -0
- package/dist/esm/sdk/user.js +35 -0
- package/dist/esm/sdk/user.js.map +1 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/adminChangeUserRole.ts +12 -15
- package/src/funcs/adminListAuditLogs.ts +12 -13
- package/src/funcs/{authenticationCreateNonce.ts → authCreateNonce.ts} +12 -15
- package/src/funcs/{authenticationGetSelf.ts → authListNonces.ts} +17 -19
- package/src/funcs/{authenticationLogin.ts → authLogin.ts} +10 -13
- package/src/funcs/{authenticationLogout.ts → authLogout.ts} +13 -16
- package/src/funcs/organizationGetOrganization.ts +10 -13
- package/src/funcs/organizationListOrganizations.ts +7 -11
- package/src/funcs/proposalCreateProposal.ts +15 -16
- package/src/funcs/{proposalCancelProposal.ts → proposalDeleteProposal.ts} +18 -20
- package/src/funcs/proposalGetProposal.ts +11 -14
- package/src/funcs/proposalListProposals.ts +6 -11
- package/src/funcs/{proposalListProposalStakes.ts → proposalListStakes.ts} +30 -22
- package/src/funcs/{proposalListProposalTrades.ts → proposalListTrades.ts} +30 -22
- package/src/funcs/{organizationActivateRaise.ts → proposalUpdateProposal.ts} +22 -24
- package/src/funcs/raiseGetRaise.ts +184 -0
- package/src/funcs/raiseListContributions.ts +190 -0
- package/src/funcs/raiseListRaises.ts +176 -0
- package/src/funcs/{organizationChangeOrganizationStatus.ts → raiseUpdateRaise.ts} +19 -23
- package/src/funcs/{proposalInitializeProposal.ts → userGetUser.ts} +20 -26
- package/src/funcs/{adminListUsers.ts → userListUsers.ts} +14 -19
- package/src/funcs/userUpdateUser.ts +176 -0
- package/src/lib/config.ts +9 -5
- package/src/lib/security.ts +1 -1
- package/src/models/components/contactinformation.ts +0 -10
- package/src/models/components/createproposal.ts +80 -0
- package/src/models/components/decisionmarket.ts +40 -16
- package/src/models/components/index.ts +4 -19
- package/src/models/components/organization.ts +32 -42
- package/src/models/components/pagination.ts +10 -22
- package/src/models/components/proposal.ts +29 -61
- package/src/models/components/proposalaction.ts +50 -987
- package/src/models/components/proposalstatus.ts +38 -0
- package/src/models/components/raise.ts +40 -65
- package/src/models/components/raiseallocation.ts +8 -24
- package/src/models/components/raisecontribution.ts +0 -6
- package/src/models/components/raisestatus.ts +34 -0
- package/src/models/components/security.ts +4 -4
- package/src/models/components/token.ts +8 -8
- package/src/models/components/trade.ts +28 -8
- package/src/models/components/treasury.ts +8 -26
- package/src/models/components/updateproposal.ts +116 -0
- package/src/models/components/user.ts +20 -18
- package/src/models/errors/errorresponse.ts +208 -0
- package/src/models/errors/index.ts +1 -1
- package/src/models/operations/changeuserrole.ts +65 -0
- package/src/models/operations/createnonce.ts +114 -1
- package/src/models/operations/createproposal.ts +74 -0
- package/src/models/operations/deleteproposal.ts +127 -0
- package/src/models/operations/getorganization.ts +72 -4
- package/src/models/operations/getproposal.ts +70 -4
- package/src/models/operations/getraise.ts +188 -0
- package/src/models/operations/getuser.ts +128 -0
- package/src/models/operations/index.ts +12 -7
- package/src/models/operations/listauditlogs.ts +69 -9
- package/src/models/operations/listcontributions.ts +204 -0
- package/src/models/operations/listnonces.ts +74 -0
- package/src/models/operations/listorganizations.ts +109 -15
- package/src/models/operations/listproposals.ts +77 -16
- package/src/models/operations/listraises.ts +209 -0
- package/src/models/operations/liststakes.ts +202 -0
- package/src/models/operations/listtrades.ts +233 -0
- package/src/models/operations/listusers.ts +70 -13
- package/src/models/operations/login.ts +119 -9
- package/src/models/operations/logout.ts +65 -7
- package/src/models/operations/updateproposal.ts +145 -0
- package/src/models/operations/updateraise.ts +210 -0
- package/src/models/operations/updateuser.ts +207 -0
- package/src/sdk/admin.ts +4 -29
- package/src/sdk/auth.ts +79 -0
- package/src/sdk/organization.ts +4 -71
- package/src/sdk/proposal.ts +39 -47
- package/src/sdk/raise.ts +87 -0
- package/src/sdk/sdk.ts +16 -4
- package/src/sdk/user.ts +60 -0
- package/dist/commonjs/funcs/adminListUsers.d.ts +0 -23
- package/dist/commonjs/funcs/adminListUsers.d.ts.map +0 -1
- package/dist/commonjs/funcs/adminListUsers.js.map +0 -1
- package/dist/commonjs/funcs/authenticationCreateNonce.d.ts.map +0 -1
- package/dist/commonjs/funcs/authenticationCreateNonce.js.map +0 -1
- package/dist/commonjs/funcs/authenticationGetSelf.d.ts +0 -20
- package/dist/commonjs/funcs/authenticationGetSelf.d.ts.map +0 -1
- package/dist/commonjs/funcs/authenticationGetSelf.js.map +0 -1
- package/dist/commonjs/funcs/authenticationLogin.d.ts.map +0 -1
- package/dist/commonjs/funcs/authenticationLogin.js.map +0 -1
- package/dist/commonjs/funcs/authenticationLogout.d.ts.map +0 -1
- package/dist/commonjs/funcs/authenticationLogout.js.map +0 -1
- package/dist/commonjs/funcs/organizationActivateRaise.d.ts +0 -21
- package/dist/commonjs/funcs/organizationActivateRaise.d.ts.map +0 -1
- package/dist/commonjs/funcs/organizationActivateRaise.js.map +0 -1
- package/dist/commonjs/funcs/organizationChangeOrganizationStatus.d.ts +0 -21
- package/dist/commonjs/funcs/organizationChangeOrganizationStatus.d.ts.map +0 -1
- package/dist/commonjs/funcs/organizationChangeOrganizationStatus.js.map +0 -1
- package/dist/commonjs/funcs/organizationEditOrganization.d.ts +0 -21
- package/dist/commonjs/funcs/organizationEditOrganization.d.ts.map +0 -1
- package/dist/commonjs/funcs/organizationEditOrganization.js +0 -177
- package/dist/commonjs/funcs/organizationEditOrganization.js.map +0 -1
- package/dist/commonjs/funcs/proposalCancelProposal.d.ts +0 -20
- package/dist/commonjs/funcs/proposalCancelProposal.d.ts.map +0 -1
- package/dist/commonjs/funcs/proposalCancelProposal.js.map +0 -1
- package/dist/commonjs/funcs/proposalInitializeProposal.d.ts.map +0 -1
- package/dist/commonjs/funcs/proposalInitializeProposal.js.map +0 -1
- package/dist/commonjs/funcs/proposalListProposalStakes.d.ts.map +0 -1
- package/dist/commonjs/funcs/proposalListProposalStakes.js.map +0 -1
- package/dist/commonjs/funcs/proposalListProposalTrades.d.ts.map +0 -1
- package/dist/commonjs/funcs/proposalListProposalTrades.js.map +0 -1
- package/dist/commonjs/models/components/errcode.d.ts +0 -82
- package/dist/commonjs/models/components/errcode.d.ts.map +0 -1
- package/dist/commonjs/models/components/errcode.js +0 -80
- package/dist/commonjs/models/components/errcode.js.map +0 -1
- package/dist/commonjs/models/components/errordetails.d.ts +0 -44
- package/dist/commonjs/models/components/errordetails.d.ts.map +0 -1
- package/dist/commonjs/models/components/errordetails.js +0 -75
- package/dist/commonjs/models/components/errordetails.js.map +0 -1
- package/dist/commonjs/models/components/fielderror.d.ts +0 -31
- package/dist/commonjs/models/components/fielderror.d.ts.map +0 -1
- package/dist/commonjs/models/components/fielderror.js +0 -71
- package/dist/commonjs/models/components/fielderror.js.map +0 -1
- package/dist/commonjs/models/components/marketside.d.ts +0 -28
- package/dist/commonjs/models/components/marketside.d.ts.map +0 -1
- package/dist/commonjs/models/components/marketside.js.map +0 -1
- package/dist/commonjs/models/components/nonceresponse.d.ts +0 -59
- package/dist/commonjs/models/components/nonceresponse.d.ts.map +0 -1
- package/dist/commonjs/models/components/nonceresponse.js +0 -99
- package/dist/commonjs/models/components/nonceresponse.js.map +0 -1
- package/dist/commonjs/models/components/ok.d.ts +0 -32
- package/dist/commonjs/models/components/ok.d.ts.map +0 -1
- package/dist/commonjs/models/components/ok.js.map +0 -1
- package/dist/commonjs/models/components/organizationresponse.d.ts +0 -35
- package/dist/commonjs/models/components/organizationresponse.d.ts.map +0 -1
- package/dist/commonjs/models/components/organizationresponse.js +0 -72
- package/dist/commonjs/models/components/organizationresponse.js.map +0 -1
- package/dist/commonjs/models/components/paginatedauditlogs.d.ts +0 -41
- package/dist/commonjs/models/components/paginatedauditlogs.d.ts.map +0 -1
- package/dist/commonjs/models/components/paginatedauditlogs.js.map +0 -1
- package/dist/commonjs/models/components/paginatedorganizations.d.ts +0 -41
- package/dist/commonjs/models/components/paginatedorganizations.d.ts.map +0 -1
- package/dist/commonjs/models/components/paginatedorganizations.js +0 -75
- package/dist/commonjs/models/components/paginatedorganizations.js.map +0 -1
- package/dist/commonjs/models/components/paginatedproposals.d.ts +0 -41
- package/dist/commonjs/models/components/paginatedproposals.d.ts.map +0 -1
- package/dist/commonjs/models/components/paginatedproposals.js +0 -75
- package/dist/commonjs/models/components/paginatedproposals.js.map +0 -1
- package/dist/commonjs/models/components/paginatedstakes.d.ts +0 -41
- package/dist/commonjs/models/components/paginatedstakes.d.ts.map +0 -1
- package/dist/commonjs/models/components/paginatedstakes.js +0 -75
- package/dist/commonjs/models/components/paginatedstakes.js.map +0 -1
- package/dist/commonjs/models/components/paginatedtrades.d.ts +0 -41
- package/dist/commonjs/models/components/paginatedtrades.d.ts.map +0 -1
- package/dist/commonjs/models/components/paginatedtrades.js +0 -75
- package/dist/commonjs/models/components/paginatedtrades.js.map +0 -1
- package/dist/commonjs/models/components/paginatedusers.d.ts +0 -41
- package/dist/commonjs/models/components/paginatedusers.d.ts.map +0 -1
- package/dist/commonjs/models/components/paginatedusers.js +0 -75
- package/dist/commonjs/models/components/paginatedusers.js.map +0 -1
- package/dist/commonjs/models/components/proposalrequest.d.ts +0 -36
- package/dist/commonjs/models/components/proposalrequest.d.ts.map +0 -1
- package/dist/commonjs/models/components/proposalrequest.js.map +0 -1
- package/dist/commonjs/models/components/proposalresponse.d.ts +0 -35
- package/dist/commonjs/models/components/proposalresponse.d.ts.map +0 -1
- package/dist/commonjs/models/components/proposalresponse.js +0 -72
- package/dist/commonjs/models/components/proposalresponse.js.map +0 -1
- package/dist/commonjs/models/components/tokenresponse.d.ts +0 -62
- package/dist/commonjs/models/components/tokenresponse.d.ts.map +0 -1
- package/dist/commonjs/models/components/tokenresponse.js +0 -98
- package/dist/commonjs/models/components/tokenresponse.js.map +0 -1
- package/dist/commonjs/models/components/userresponse.d.ts +0 -35
- package/dist/commonjs/models/components/userresponse.d.ts.map +0 -1
- package/dist/commonjs/models/components/userresponse.js +0 -72
- package/dist/commonjs/models/components/userresponse.js.map +0 -1
- package/dist/commonjs/models/components/userwithnonces.d.ts +0 -43
- package/dist/commonjs/models/components/userwithnonces.d.ts.map +0 -1
- package/dist/commonjs/models/components/userwithnonces.js +0 -85
- package/dist/commonjs/models/components/userwithnonces.js.map +0 -1
- package/dist/commonjs/models/components/userwithnoncesresponse.d.ts +0 -35
- package/dist/commonjs/models/components/userwithnoncesresponse.d.ts.map +0 -1
- package/dist/commonjs/models/components/userwithnoncesresponse.js.map +0 -1
- package/dist/commonjs/models/errors/err.d.ts +0 -52
- package/dist/commonjs/models/errors/err.d.ts.map +0 -1
- package/dist/commonjs/models/errors/err.js +0 -94
- package/dist/commonjs/models/errors/err.js.map +0 -1
- package/dist/commonjs/models/operations/activateraise.d.ts +0 -29
- package/dist/commonjs/models/operations/activateraise.d.ts.map +0 -1
- package/dist/commonjs/models/operations/activateraise.js +0 -69
- package/dist/commonjs/models/operations/activateraise.js.map +0 -1
- package/dist/commonjs/models/operations/cancelproposal.d.ts +0 -86
- package/dist/commonjs/models/operations/cancelproposal.d.ts.map +0 -1
- package/dist/commonjs/models/operations/cancelproposal.js +0 -128
- package/dist/commonjs/models/operations/cancelproposal.js.map +0 -1
- package/dist/commonjs/models/operations/changeorganizationstatus.d.ts +0 -62
- package/dist/commonjs/models/operations/changeorganizationstatus.d.ts.map +0 -1
- package/dist/commonjs/models/operations/changeorganizationstatus.js +0 -110
- package/dist/commonjs/models/operations/changeorganizationstatus.js.map +0 -1
- package/dist/commonjs/models/operations/editorganization.d.ts +0 -121
- package/dist/commonjs/models/operations/editorganization.d.ts.map +0 -1
- package/dist/commonjs/models/operations/editorganization.js +0 -198
- package/dist/commonjs/models/operations/editorganization.js.map +0 -1
- package/dist/commonjs/models/operations/initializeproposal.d.ts +0 -29
- package/dist/commonjs/models/operations/initializeproposal.d.ts.map +0 -1
- package/dist/commonjs/models/operations/initializeproposal.js +0 -69
- package/dist/commonjs/models/operations/initializeproposal.js.map +0 -1
- package/dist/commonjs/models/operations/listproposalstakes.d.ts +0 -39
- package/dist/commonjs/models/operations/listproposalstakes.d.ts.map +0 -1
- package/dist/commonjs/models/operations/listproposalstakes.js +0 -73
- package/dist/commonjs/models/operations/listproposalstakes.js.map +0 -1
- package/dist/commonjs/models/operations/listproposaltrades.d.ts +0 -76
- package/dist/commonjs/models/operations/listproposaltrades.d.ts.map +0 -1
- package/dist/commonjs/models/operations/listproposaltrades.js +0 -97
- package/dist/commonjs/models/operations/listproposaltrades.js.map +0 -1
- package/dist/commonjs/sdk/authentication.d.ts +0 -42
- package/dist/commonjs/sdk/authentication.d.ts.map +0 -1
- package/dist/commonjs/sdk/authentication.js +0 -60
- package/dist/commonjs/sdk/authentication.js.map +0 -1
- package/dist/esm/funcs/adminListUsers.d.ts +0 -23
- package/dist/esm/funcs/adminListUsers.d.ts.map +0 -1
- package/dist/esm/funcs/adminListUsers.js.map +0 -1
- package/dist/esm/funcs/authenticationCreateNonce.d.ts.map +0 -1
- package/dist/esm/funcs/authenticationCreateNonce.js.map +0 -1
- package/dist/esm/funcs/authenticationGetSelf.d.ts +0 -20
- package/dist/esm/funcs/authenticationGetSelf.d.ts.map +0 -1
- package/dist/esm/funcs/authenticationGetSelf.js.map +0 -1
- package/dist/esm/funcs/authenticationLogin.d.ts.map +0 -1
- package/dist/esm/funcs/authenticationLogin.js.map +0 -1
- package/dist/esm/funcs/authenticationLogout.d.ts.map +0 -1
- package/dist/esm/funcs/authenticationLogout.js.map +0 -1
- package/dist/esm/funcs/organizationActivateRaise.d.ts +0 -21
- package/dist/esm/funcs/organizationActivateRaise.d.ts.map +0 -1
- package/dist/esm/funcs/organizationActivateRaise.js.map +0 -1
- package/dist/esm/funcs/organizationChangeOrganizationStatus.d.ts +0 -21
- package/dist/esm/funcs/organizationChangeOrganizationStatus.d.ts.map +0 -1
- package/dist/esm/funcs/organizationChangeOrganizationStatus.js.map +0 -1
- package/dist/esm/funcs/organizationEditOrganization.d.ts +0 -21
- package/dist/esm/funcs/organizationEditOrganization.d.ts.map +0 -1
- package/dist/esm/funcs/organizationEditOrganization.js +0 -141
- package/dist/esm/funcs/organizationEditOrganization.js.map +0 -1
- package/dist/esm/funcs/proposalCancelProposal.d.ts +0 -20
- package/dist/esm/funcs/proposalCancelProposal.d.ts.map +0 -1
- package/dist/esm/funcs/proposalCancelProposal.js.map +0 -1
- package/dist/esm/funcs/proposalInitializeProposal.d.ts.map +0 -1
- package/dist/esm/funcs/proposalInitializeProposal.js.map +0 -1
- package/dist/esm/funcs/proposalListProposalStakes.d.ts.map +0 -1
- package/dist/esm/funcs/proposalListProposalStakes.js.map +0 -1
- package/dist/esm/funcs/proposalListProposalTrades.d.ts.map +0 -1
- package/dist/esm/funcs/proposalListProposalTrades.js.map +0 -1
- package/dist/esm/models/components/errcode.d.ts +0 -82
- package/dist/esm/models/components/errcode.d.ts.map +0 -1
- package/dist/esm/models/components/errcode.js +0 -44
- package/dist/esm/models/components/errcode.js.map +0 -1
- package/dist/esm/models/components/errordetails.d.ts +0 -44
- package/dist/esm/models/components/errordetails.d.ts.map +0 -1
- package/dist/esm/models/components/errordetails.js +0 -37
- package/dist/esm/models/components/errordetails.js.map +0 -1
- package/dist/esm/models/components/fielderror.d.ts +0 -31
- package/dist/esm/models/components/fielderror.d.ts.map +0 -1
- package/dist/esm/models/components/fielderror.js +0 -33
- package/dist/esm/models/components/fielderror.js.map +0 -1
- package/dist/esm/models/components/marketside.d.ts +0 -28
- package/dist/esm/models/components/marketside.d.ts.map +0 -1
- package/dist/esm/models/components/marketside.js +0 -25
- package/dist/esm/models/components/marketside.js.map +0 -1
- package/dist/esm/models/components/nonceresponse.d.ts +0 -59
- package/dist/esm/models/components/nonceresponse.d.ts.map +0 -1
- package/dist/esm/models/components/nonceresponse.js +0 -59
- package/dist/esm/models/components/nonceresponse.js.map +0 -1
- package/dist/esm/models/components/ok.d.ts +0 -32
- package/dist/esm/models/components/ok.d.ts.map +0 -1
- package/dist/esm/models/components/ok.js +0 -32
- package/dist/esm/models/components/ok.js.map +0 -1
- package/dist/esm/models/components/organizationresponse.d.ts +0 -35
- package/dist/esm/models/components/organizationresponse.d.ts.map +0 -1
- package/dist/esm/models/components/organizationresponse.js +0 -34
- package/dist/esm/models/components/organizationresponse.js.map +0 -1
- package/dist/esm/models/components/paginatedauditlogs.d.ts +0 -41
- package/dist/esm/models/components/paginatedauditlogs.d.ts.map +0 -1
- package/dist/esm/models/components/paginatedauditlogs.js +0 -37
- package/dist/esm/models/components/paginatedauditlogs.js.map +0 -1
- package/dist/esm/models/components/paginatedorganizations.d.ts +0 -41
- package/dist/esm/models/components/paginatedorganizations.d.ts.map +0 -1
- package/dist/esm/models/components/paginatedorganizations.js +0 -37
- package/dist/esm/models/components/paginatedorganizations.js.map +0 -1
- package/dist/esm/models/components/paginatedproposals.d.ts +0 -41
- package/dist/esm/models/components/paginatedproposals.d.ts.map +0 -1
- package/dist/esm/models/components/paginatedproposals.js +0 -37
- package/dist/esm/models/components/paginatedproposals.js.map +0 -1
- package/dist/esm/models/components/paginatedstakes.d.ts +0 -41
- package/dist/esm/models/components/paginatedstakes.d.ts.map +0 -1
- package/dist/esm/models/components/paginatedstakes.js +0 -37
- package/dist/esm/models/components/paginatedstakes.js.map +0 -1
- package/dist/esm/models/components/paginatedtrades.d.ts +0 -41
- package/dist/esm/models/components/paginatedtrades.d.ts.map +0 -1
- package/dist/esm/models/components/paginatedtrades.js +0 -37
- package/dist/esm/models/components/paginatedtrades.js.map +0 -1
- package/dist/esm/models/components/paginatedusers.d.ts +0 -41
- package/dist/esm/models/components/paginatedusers.d.ts.map +0 -1
- package/dist/esm/models/components/paginatedusers.js +0 -37
- package/dist/esm/models/components/paginatedusers.js.map +0 -1
- package/dist/esm/models/components/proposalrequest.d.ts +0 -36
- package/dist/esm/models/components/proposalrequest.d.ts.map +0 -1
- package/dist/esm/models/components/proposalrequest.js +0 -38
- package/dist/esm/models/components/proposalrequest.js.map +0 -1
- package/dist/esm/models/components/proposalresponse.d.ts +0 -35
- package/dist/esm/models/components/proposalresponse.d.ts.map +0 -1
- package/dist/esm/models/components/proposalresponse.js +0 -34
- package/dist/esm/models/components/proposalresponse.js.map +0 -1
- package/dist/esm/models/components/tokenresponse.d.ts +0 -62
- package/dist/esm/models/components/tokenresponse.d.ts.map +0 -1
- package/dist/esm/models/components/tokenresponse.js +0 -58
- package/dist/esm/models/components/tokenresponse.js.map +0 -1
- package/dist/esm/models/components/userresponse.d.ts +0 -35
- package/dist/esm/models/components/userresponse.d.ts.map +0 -1
- package/dist/esm/models/components/userresponse.js +0 -34
- package/dist/esm/models/components/userresponse.js.map +0 -1
- package/dist/esm/models/components/userwithnonces.d.ts +0 -43
- package/dist/esm/models/components/userwithnonces.d.ts.map +0 -1
- package/dist/esm/models/components/userwithnonces.js +0 -47
- package/dist/esm/models/components/userwithnonces.js.map +0 -1
- package/dist/esm/models/components/userwithnoncesresponse.d.ts +0 -35
- package/dist/esm/models/components/userwithnoncesresponse.d.ts.map +0 -1
- package/dist/esm/models/components/userwithnoncesresponse.js +0 -34
- package/dist/esm/models/components/userwithnoncesresponse.js.map +0 -1
- package/dist/esm/models/errors/err.d.ts +0 -52
- package/dist/esm/models/errors/err.d.ts.map +0 -1
- package/dist/esm/models/errors/err.js +0 -57
- package/dist/esm/models/errors/err.js.map +0 -1
- package/dist/esm/models/operations/activateraise.d.ts +0 -29
- package/dist/esm/models/operations/activateraise.d.ts.map +0 -1
- package/dist/esm/models/operations/activateraise.js +0 -31
- package/dist/esm/models/operations/activateraise.js.map +0 -1
- package/dist/esm/models/operations/cancelproposal.d.ts +0 -86
- package/dist/esm/models/operations/cancelproposal.d.ts.map +0 -1
- package/dist/esm/models/operations/cancelproposal.js +0 -86
- package/dist/esm/models/operations/cancelproposal.js.map +0 -1
- package/dist/esm/models/operations/changeorganizationstatus.d.ts +0 -62
- package/dist/esm/models/operations/changeorganizationstatus.d.ts.map +0 -1
- package/dist/esm/models/operations/changeorganizationstatus.js +0 -70
- package/dist/esm/models/operations/changeorganizationstatus.js.map +0 -1
- package/dist/esm/models/operations/editorganization.d.ts +0 -121
- package/dist/esm/models/operations/editorganization.d.ts.map +0 -1
- package/dist/esm/models/operations/editorganization.js +0 -154
- package/dist/esm/models/operations/editorganization.js.map +0 -1
- package/dist/esm/models/operations/initializeproposal.d.ts +0 -29
- package/dist/esm/models/operations/initializeproposal.d.ts.map +0 -1
- package/dist/esm/models/operations/initializeproposal.js +0 -31
- package/dist/esm/models/operations/initializeproposal.js.map +0 -1
- package/dist/esm/models/operations/listproposalstakes.d.ts +0 -39
- package/dist/esm/models/operations/listproposalstakes.d.ts.map +0 -1
- package/dist/esm/models/operations/listproposalstakes.js +0 -35
- package/dist/esm/models/operations/listproposalstakes.js.map +0 -1
- package/dist/esm/models/operations/listproposaltrades.d.ts +0 -76
- package/dist/esm/models/operations/listproposaltrades.d.ts.map +0 -1
- package/dist/esm/models/operations/listproposaltrades.js +0 -59
- package/dist/esm/models/operations/listproposaltrades.js.map +0 -1
- package/dist/esm/sdk/authentication.d.ts +0 -42
- package/dist/esm/sdk/authentication.d.ts.map +0 -1
- package/dist/esm/sdk/authentication.js +0 -56
- package/dist/esm/sdk/authentication.js.map +0 -1
- package/src/funcs/organizationEditOrganization.ts +0 -250
- package/src/models/components/errcode.ts +0 -53
- package/src/models/components/errordetails.ts +0 -90
- package/src/models/components/fielderror.ts +0 -66
- package/src/models/components/marketside.ts +0 -31
- package/src/models/components/nonceresponse.ts +0 -117
- package/src/models/components/ok.ts +0 -58
- package/src/models/components/organizationresponse.ts +0 -79
- package/src/models/components/paginatedauditlogs.ts +0 -92
- package/src/models/components/paginatedorganizations.ts +0 -92
- package/src/models/components/paginatedproposals.ts +0 -92
- package/src/models/components/paginatedstakes.ts +0 -90
- package/src/models/components/paginatedtrades.ts +0 -90
- package/src/models/components/paginatedusers.ts +0 -88
- package/src/models/components/proposalrequest.ts +0 -82
- package/src/models/components/proposalresponse.ts +0 -79
- package/src/models/components/tokenresponse.ts +0 -130
- package/src/models/components/userresponse.ts +0 -75
- package/src/models/components/userwithnonces.ts +0 -99
- package/src/models/components/userwithnoncesresponse.ts +0 -79
- package/src/models/errors/err.ts +0 -92
- package/src/models/operations/activateraise.ts +0 -66
- package/src/models/operations/cancelproposal.ts +0 -183
- package/src/models/operations/changeorganizationstatus.ts +0 -152
- package/src/models/operations/editorganization.ts +0 -291
- package/src/models/operations/initializeproposal.ts +0 -66
- package/src/models/operations/listproposalstakes.ts +0 -80
- package/src/models/operations/listproposaltrades.ts +0 -120
- package/src/sdk/authentication.ts +0 -88
|
@@ -8,18 +8,14 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
order?: number | undefined;
|
|
20
|
-
created?: Date | undefined;
|
|
21
|
-
updated?: Date | undefined;
|
|
22
|
-
};
|
|
11
|
+
export const ActionType = {
|
|
12
|
+
TreasurySpend: "treasury_spend",
|
|
13
|
+
MintTokens: "mint_tokens",
|
|
14
|
+
BurnTokens: "burn_tokens",
|
|
15
|
+
AdjustLp: "adjust_lp",
|
|
16
|
+
UpdateMetadata: "update_metadata",
|
|
17
|
+
} as const;
|
|
18
|
+
export type ActionType = ClosedEnum<typeof ActionType>;
|
|
23
19
|
|
|
24
20
|
export const Action = {
|
|
25
21
|
Add: "add",
|
|
@@ -27,205 +23,37 @@ export const Action = {
|
|
|
27
23
|
} as const;
|
|
28
24
|
export type Action = ClosedEnum<typeof Action>;
|
|
29
25
|
|
|
30
|
-
export type
|
|
31
|
-
actionType: "adjust_lp";
|
|
32
|
-
action: Action;
|
|
33
|
-
/**
|
|
34
|
-
* At least one of tokenAmount or usdcAmount required
|
|
35
|
-
*/
|
|
36
|
-
tokenAmount?: number | undefined;
|
|
37
|
-
/**
|
|
38
|
-
* At least one of tokenAmount or usdcAmount required
|
|
39
|
-
*/
|
|
40
|
-
usdcAmount?: number | undefined;
|
|
41
|
-
id?: number | undefined;
|
|
42
|
-
proposalId?: number | undefined;
|
|
43
|
-
order?: number | undefined;
|
|
44
|
-
created?: Date | undefined;
|
|
45
|
-
updated?: Date | undefined;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export type BurnTokensAction = {
|
|
49
|
-
actionType: "burn_tokens";
|
|
50
|
-
amount: number;
|
|
26
|
+
export type ProposalAction = {
|
|
51
27
|
id?: number | undefined;
|
|
52
28
|
proposalId?: number | undefined;
|
|
53
29
|
order?: number | undefined;
|
|
54
|
-
|
|
55
|
-
updated?: Date | undefined;
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
export type MintTokensAction = {
|
|
59
|
-
actionType: "mint_tokens";
|
|
60
|
-
amount: number;
|
|
61
|
-
/**
|
|
62
|
-
* Optional, defaults to treasury
|
|
63
|
-
*/
|
|
30
|
+
actionType: ActionType;
|
|
64
31
|
recipientAddress?: string | undefined;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
created?: Date | undefined;
|
|
69
|
-
updated?: Date | undefined;
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
export type TreasurySpendAction = {
|
|
73
|
-
actionType: "treasury_spend";
|
|
74
|
-
/**
|
|
75
|
-
* Valid wallet address
|
|
76
|
-
*/
|
|
77
|
-
recipientAddress: string;
|
|
78
|
-
amount: number;
|
|
79
|
-
/**
|
|
80
|
-
* Token address or 'USDC'
|
|
81
|
-
*/
|
|
82
|
-
token: string;
|
|
83
|
-
id?: number | undefined;
|
|
84
|
-
proposalId?: number | undefined;
|
|
85
|
-
order?: number | undefined;
|
|
86
|
-
created?: Date | undefined;
|
|
87
|
-
updated?: Date | undefined;
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
export type ProposalAction =
|
|
91
|
-
| (TreasurySpendAction & { actionType: "treasury_spend" })
|
|
92
|
-
| (MintTokensAction & { actionType: "mint_tokens" })
|
|
93
|
-
| (BurnTokensAction & { actionType: "burn_tokens" })
|
|
94
|
-
| (AdjustLpAction & { actionType: "adjust_lp" })
|
|
95
|
-
| (UpdateMetadataAction & { actionType: "update_metadata" });
|
|
96
|
-
|
|
97
|
-
export type ProposalActionUpdateMetadataAction = {
|
|
98
|
-
actionType: "update_metadata";
|
|
99
|
-
/**
|
|
100
|
-
* Valid IPFS CID or URL
|
|
101
|
-
*/
|
|
102
|
-
uri: string;
|
|
103
|
-
order?: number | undefined;
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
export type ProposalActionAdjustLpAction = {
|
|
107
|
-
actionType: "adjust_lp";
|
|
108
|
-
action: Action;
|
|
109
|
-
/**
|
|
110
|
-
* At least one of tokenAmount or usdcAmount required
|
|
111
|
-
*/
|
|
32
|
+
amount?: number | undefined;
|
|
33
|
+
token?: string | undefined;
|
|
34
|
+
action?: Action | undefined;
|
|
112
35
|
tokenAmount?: number | undefined;
|
|
113
|
-
/**
|
|
114
|
-
* At least one of tokenAmount or usdcAmount required
|
|
115
|
-
*/
|
|
116
36
|
usdcAmount?: number | undefined;
|
|
117
|
-
|
|
37
|
+
uri?: string | undefined;
|
|
118
38
|
};
|
|
119
39
|
|
|
120
|
-
export type ProposalActionBurnTokensAction = {
|
|
121
|
-
actionType: "burn_tokens";
|
|
122
|
-
amount: number;
|
|
123
|
-
order?: number | undefined;
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
export type ProposalActionMintTokensAction = {
|
|
127
|
-
actionType: "mint_tokens";
|
|
128
|
-
amount: number;
|
|
129
|
-
/**
|
|
130
|
-
* Optional, defaults to treasury
|
|
131
|
-
*/
|
|
132
|
-
recipientAddress?: string | undefined;
|
|
133
|
-
order?: number | undefined;
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
export type ProposalActionTreasurySpendAction = {
|
|
137
|
-
actionType: "treasury_spend";
|
|
138
|
-
/**
|
|
139
|
-
* Valid wallet address
|
|
140
|
-
*/
|
|
141
|
-
recipientAddress: string;
|
|
142
|
-
amount: number;
|
|
143
|
-
/**
|
|
144
|
-
* Token address or 'USDC'
|
|
145
|
-
*/
|
|
146
|
-
token: string;
|
|
147
|
-
order?: number | undefined;
|
|
148
|
-
};
|
|
149
|
-
|
|
150
|
-
export type ProposalActionRequest =
|
|
151
|
-
| (ProposalActionTreasurySpendAction & { actionType: "treasury_spend" })
|
|
152
|
-
| (ProposalActionMintTokensAction & { actionType: "mint_tokens" })
|
|
153
|
-
| (ProposalActionBurnTokensAction & { actionType: "burn_tokens" })
|
|
154
|
-
| (ProposalActionAdjustLpAction & { actionType: "adjust_lp" })
|
|
155
|
-
| (ProposalActionUpdateMetadataAction & { actionType: "update_metadata" });
|
|
156
|
-
|
|
157
40
|
/** @internal */
|
|
158
|
-
export const
|
|
159
|
-
|
|
160
|
-
z.ZodTypeDef,
|
|
161
|
-
unknown
|
|
162
|
-
> = z.object({
|
|
163
|
-
actionType: z.literal("update_metadata"),
|
|
164
|
-
uri: z.string(),
|
|
165
|
-
id: z.number().int().optional(),
|
|
166
|
-
proposalId: z.number().int().optional(),
|
|
167
|
-
order: z.number().int().optional(),
|
|
168
|
-
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
169
|
-
.optional(),
|
|
170
|
-
updated: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
171
|
-
.optional(),
|
|
172
|
-
});
|
|
41
|
+
export const ActionType$inboundSchema: z.ZodNativeEnum<typeof ActionType> = z
|
|
42
|
+
.nativeEnum(ActionType);
|
|
173
43
|
|
|
174
44
|
/** @internal */
|
|
175
|
-
export
|
|
176
|
-
|
|
177
|
-
uri: string;
|
|
178
|
-
id?: number | undefined;
|
|
179
|
-
proposalId?: number | undefined;
|
|
180
|
-
order?: number | undefined;
|
|
181
|
-
created?: string | undefined;
|
|
182
|
-
updated?: string | undefined;
|
|
183
|
-
};
|
|
184
|
-
|
|
185
|
-
/** @internal */
|
|
186
|
-
export const UpdateMetadataAction$outboundSchema: z.ZodType<
|
|
187
|
-
UpdateMetadataAction$Outbound,
|
|
188
|
-
z.ZodTypeDef,
|
|
189
|
-
UpdateMetadataAction
|
|
190
|
-
> = z.object({
|
|
191
|
-
actionType: z.literal("update_metadata"),
|
|
192
|
-
uri: z.string(),
|
|
193
|
-
id: z.number().int().optional(),
|
|
194
|
-
proposalId: z.number().int().optional(),
|
|
195
|
-
order: z.number().int().optional(),
|
|
196
|
-
created: z.date().transform(v => v.toISOString()).optional(),
|
|
197
|
-
updated: z.date().transform(v => v.toISOString()).optional(),
|
|
198
|
-
});
|
|
45
|
+
export const ActionType$outboundSchema: z.ZodNativeEnum<typeof ActionType> =
|
|
46
|
+
ActionType$inboundSchema;
|
|
199
47
|
|
|
200
48
|
/**
|
|
201
49
|
* @internal
|
|
202
50
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
203
51
|
*/
|
|
204
|
-
export namespace
|
|
205
|
-
/** @deprecated use `
|
|
206
|
-
export const inboundSchema =
|
|
207
|
-
/** @deprecated use `
|
|
208
|
-
export const outboundSchema =
|
|
209
|
-
/** @deprecated use `UpdateMetadataAction$Outbound` instead. */
|
|
210
|
-
export type Outbound = UpdateMetadataAction$Outbound;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
export function updateMetadataActionToJSON(
|
|
214
|
-
updateMetadataAction: UpdateMetadataAction,
|
|
215
|
-
): string {
|
|
216
|
-
return JSON.stringify(
|
|
217
|
-
UpdateMetadataAction$outboundSchema.parse(updateMetadataAction),
|
|
218
|
-
);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
export function updateMetadataActionFromJSON(
|
|
222
|
-
jsonString: string,
|
|
223
|
-
): SafeParseResult<UpdateMetadataAction, SDKValidationError> {
|
|
224
|
-
return safeParse(
|
|
225
|
-
jsonString,
|
|
226
|
-
(x) => UpdateMetadataAction$inboundSchema.parse(JSON.parse(x)),
|
|
227
|
-
`Failed to parse 'UpdateMetadataAction' from JSON`,
|
|
228
|
-
);
|
|
52
|
+
export namespace ActionType$ {
|
|
53
|
+
/** @deprecated use `ActionType$inboundSchema` instead. */
|
|
54
|
+
export const inboundSchema = ActionType$inboundSchema;
|
|
55
|
+
/** @deprecated use `ActionType$outboundSchema` instead. */
|
|
56
|
+
export const outboundSchema = ActionType$outboundSchema;
|
|
229
57
|
}
|
|
230
58
|
|
|
231
59
|
/** @internal */
|
|
@@ -248,386 +76,58 @@ export namespace Action$ {
|
|
|
248
76
|
}
|
|
249
77
|
|
|
250
78
|
/** @internal */
|
|
251
|
-
export const
|
|
252
|
-
|
|
79
|
+
export const ProposalAction$inboundSchema: z.ZodType<
|
|
80
|
+
ProposalAction,
|
|
253
81
|
z.ZodTypeDef,
|
|
254
82
|
unknown
|
|
255
83
|
> = z.object({
|
|
256
|
-
actionType: z.literal("adjust_lp"),
|
|
257
|
-
action: Action$inboundSchema,
|
|
258
|
-
tokenAmount: z.number().optional(),
|
|
259
|
-
usdcAmount: z.number().optional(),
|
|
260
84
|
id: z.number().int().optional(),
|
|
261
85
|
proposalId: z.number().int().optional(),
|
|
262
86
|
order: z.number().int().optional(),
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
/** @internal */
|
|
270
|
-
export type AdjustLpAction$Outbound = {
|
|
271
|
-
actionType: "adjust_lp";
|
|
272
|
-
action: string;
|
|
273
|
-
tokenAmount?: number | undefined;
|
|
274
|
-
usdcAmount?: number | undefined;
|
|
275
|
-
id?: number | undefined;
|
|
276
|
-
proposalId?: number | undefined;
|
|
277
|
-
order?: number | undefined;
|
|
278
|
-
created?: string | undefined;
|
|
279
|
-
updated?: string | undefined;
|
|
280
|
-
};
|
|
281
|
-
|
|
282
|
-
/** @internal */
|
|
283
|
-
export const AdjustLpAction$outboundSchema: z.ZodType<
|
|
284
|
-
AdjustLpAction$Outbound,
|
|
285
|
-
z.ZodTypeDef,
|
|
286
|
-
AdjustLpAction
|
|
287
|
-
> = z.object({
|
|
288
|
-
actionType: z.literal("adjust_lp"),
|
|
289
|
-
action: Action$outboundSchema,
|
|
87
|
+
actionType: ActionType$inboundSchema,
|
|
88
|
+
recipientAddress: z.string().optional(),
|
|
89
|
+
amount: z.number().optional(),
|
|
90
|
+
token: z.string().optional(),
|
|
91
|
+
action: Action$inboundSchema.optional(),
|
|
290
92
|
tokenAmount: z.number().optional(),
|
|
291
93
|
usdcAmount: z.number().optional(),
|
|
292
|
-
|
|
293
|
-
proposalId: z.number().int().optional(),
|
|
294
|
-
order: z.number().int().optional(),
|
|
295
|
-
created: z.date().transform(v => v.toISOString()).optional(),
|
|
296
|
-
updated: z.date().transform(v => v.toISOString()).optional(),
|
|
297
|
-
});
|
|
298
|
-
|
|
299
|
-
/**
|
|
300
|
-
* @internal
|
|
301
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
302
|
-
*/
|
|
303
|
-
export namespace AdjustLpAction$ {
|
|
304
|
-
/** @deprecated use `AdjustLpAction$inboundSchema` instead. */
|
|
305
|
-
export const inboundSchema = AdjustLpAction$inboundSchema;
|
|
306
|
-
/** @deprecated use `AdjustLpAction$outboundSchema` instead. */
|
|
307
|
-
export const outboundSchema = AdjustLpAction$outboundSchema;
|
|
308
|
-
/** @deprecated use `AdjustLpAction$Outbound` instead. */
|
|
309
|
-
export type Outbound = AdjustLpAction$Outbound;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
export function adjustLpActionToJSON(adjustLpAction: AdjustLpAction): string {
|
|
313
|
-
return JSON.stringify(AdjustLpAction$outboundSchema.parse(adjustLpAction));
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
export function adjustLpActionFromJSON(
|
|
317
|
-
jsonString: string,
|
|
318
|
-
): SafeParseResult<AdjustLpAction, SDKValidationError> {
|
|
319
|
-
return safeParse(
|
|
320
|
-
jsonString,
|
|
321
|
-
(x) => AdjustLpAction$inboundSchema.parse(JSON.parse(x)),
|
|
322
|
-
`Failed to parse 'AdjustLpAction' from JSON`,
|
|
323
|
-
);
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
/** @internal */
|
|
327
|
-
export const BurnTokensAction$inboundSchema: z.ZodType<
|
|
328
|
-
BurnTokensAction,
|
|
329
|
-
z.ZodTypeDef,
|
|
330
|
-
unknown
|
|
331
|
-
> = z.object({
|
|
332
|
-
actionType: z.literal("burn_tokens"),
|
|
333
|
-
amount: z.number(),
|
|
334
|
-
id: z.number().int().optional(),
|
|
335
|
-
proposalId: z.number().int().optional(),
|
|
336
|
-
order: z.number().int().optional(),
|
|
337
|
-
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
338
|
-
.optional(),
|
|
339
|
-
updated: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
340
|
-
.optional(),
|
|
94
|
+
uri: z.string().optional(),
|
|
341
95
|
});
|
|
342
96
|
|
|
343
97
|
/** @internal */
|
|
344
|
-
export type
|
|
345
|
-
actionType: "burn_tokens";
|
|
346
|
-
amount: number;
|
|
98
|
+
export type ProposalAction$Outbound = {
|
|
347
99
|
id?: number | undefined;
|
|
348
100
|
proposalId?: number | undefined;
|
|
349
101
|
order?: number | undefined;
|
|
350
|
-
|
|
351
|
-
updated?: string | undefined;
|
|
352
|
-
};
|
|
353
|
-
|
|
354
|
-
/** @internal */
|
|
355
|
-
export const BurnTokensAction$outboundSchema: z.ZodType<
|
|
356
|
-
BurnTokensAction$Outbound,
|
|
357
|
-
z.ZodTypeDef,
|
|
358
|
-
BurnTokensAction
|
|
359
|
-
> = z.object({
|
|
360
|
-
actionType: z.literal("burn_tokens"),
|
|
361
|
-
amount: z.number(),
|
|
362
|
-
id: z.number().int().optional(),
|
|
363
|
-
proposalId: z.number().int().optional(),
|
|
364
|
-
order: z.number().int().optional(),
|
|
365
|
-
created: z.date().transform(v => v.toISOString()).optional(),
|
|
366
|
-
updated: z.date().transform(v => v.toISOString()).optional(),
|
|
367
|
-
});
|
|
368
|
-
|
|
369
|
-
/**
|
|
370
|
-
* @internal
|
|
371
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
372
|
-
*/
|
|
373
|
-
export namespace BurnTokensAction$ {
|
|
374
|
-
/** @deprecated use `BurnTokensAction$inboundSchema` instead. */
|
|
375
|
-
export const inboundSchema = BurnTokensAction$inboundSchema;
|
|
376
|
-
/** @deprecated use `BurnTokensAction$outboundSchema` instead. */
|
|
377
|
-
export const outboundSchema = BurnTokensAction$outboundSchema;
|
|
378
|
-
/** @deprecated use `BurnTokensAction$Outbound` instead. */
|
|
379
|
-
export type Outbound = BurnTokensAction$Outbound;
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
export function burnTokensActionToJSON(
|
|
383
|
-
burnTokensAction: BurnTokensAction,
|
|
384
|
-
): string {
|
|
385
|
-
return JSON.stringify(
|
|
386
|
-
BurnTokensAction$outboundSchema.parse(burnTokensAction),
|
|
387
|
-
);
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
export function burnTokensActionFromJSON(
|
|
391
|
-
jsonString: string,
|
|
392
|
-
): SafeParseResult<BurnTokensAction, SDKValidationError> {
|
|
393
|
-
return safeParse(
|
|
394
|
-
jsonString,
|
|
395
|
-
(x) => BurnTokensAction$inboundSchema.parse(JSON.parse(x)),
|
|
396
|
-
`Failed to parse 'BurnTokensAction' from JSON`,
|
|
397
|
-
);
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
/** @internal */
|
|
401
|
-
export const MintTokensAction$inboundSchema: z.ZodType<
|
|
402
|
-
MintTokensAction,
|
|
403
|
-
z.ZodTypeDef,
|
|
404
|
-
unknown
|
|
405
|
-
> = z.object({
|
|
406
|
-
actionType: z.literal("mint_tokens"),
|
|
407
|
-
amount: z.number(),
|
|
408
|
-
recipientAddress: z.string().optional(),
|
|
409
|
-
id: z.number().int().optional(),
|
|
410
|
-
proposalId: z.number().int().optional(),
|
|
411
|
-
order: z.number().int().optional(),
|
|
412
|
-
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
413
|
-
.optional(),
|
|
414
|
-
updated: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
415
|
-
.optional(),
|
|
416
|
-
});
|
|
417
|
-
|
|
418
|
-
/** @internal */
|
|
419
|
-
export type MintTokensAction$Outbound = {
|
|
420
|
-
actionType: "mint_tokens";
|
|
421
|
-
amount: number;
|
|
102
|
+
actionType: string;
|
|
422
103
|
recipientAddress?: string | undefined;
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
/** @internal */
|
|
431
|
-
export const MintTokensAction$outboundSchema: z.ZodType<
|
|
432
|
-
MintTokensAction$Outbound,
|
|
433
|
-
z.ZodTypeDef,
|
|
434
|
-
MintTokensAction
|
|
435
|
-
> = z.object({
|
|
436
|
-
actionType: z.literal("mint_tokens"),
|
|
437
|
-
amount: z.number(),
|
|
438
|
-
recipientAddress: z.string().optional(),
|
|
439
|
-
id: z.number().int().optional(),
|
|
440
|
-
proposalId: z.number().int().optional(),
|
|
441
|
-
order: z.number().int().optional(),
|
|
442
|
-
created: z.date().transform(v => v.toISOString()).optional(),
|
|
443
|
-
updated: z.date().transform(v => v.toISOString()).optional(),
|
|
444
|
-
});
|
|
445
|
-
|
|
446
|
-
/**
|
|
447
|
-
* @internal
|
|
448
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
449
|
-
*/
|
|
450
|
-
export namespace MintTokensAction$ {
|
|
451
|
-
/** @deprecated use `MintTokensAction$inboundSchema` instead. */
|
|
452
|
-
export const inboundSchema = MintTokensAction$inboundSchema;
|
|
453
|
-
/** @deprecated use `MintTokensAction$outboundSchema` instead. */
|
|
454
|
-
export const outboundSchema = MintTokensAction$outboundSchema;
|
|
455
|
-
/** @deprecated use `MintTokensAction$Outbound` instead. */
|
|
456
|
-
export type Outbound = MintTokensAction$Outbound;
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
export function mintTokensActionToJSON(
|
|
460
|
-
mintTokensAction: MintTokensAction,
|
|
461
|
-
): string {
|
|
462
|
-
return JSON.stringify(
|
|
463
|
-
MintTokensAction$outboundSchema.parse(mintTokensAction),
|
|
464
|
-
);
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
export function mintTokensActionFromJSON(
|
|
468
|
-
jsonString: string,
|
|
469
|
-
): SafeParseResult<MintTokensAction, SDKValidationError> {
|
|
470
|
-
return safeParse(
|
|
471
|
-
jsonString,
|
|
472
|
-
(x) => MintTokensAction$inboundSchema.parse(JSON.parse(x)),
|
|
473
|
-
`Failed to parse 'MintTokensAction' from JSON`,
|
|
474
|
-
);
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
/** @internal */
|
|
478
|
-
export const TreasurySpendAction$inboundSchema: z.ZodType<
|
|
479
|
-
TreasurySpendAction,
|
|
480
|
-
z.ZodTypeDef,
|
|
481
|
-
unknown
|
|
482
|
-
> = z.object({
|
|
483
|
-
actionType: z.literal("treasury_spend"),
|
|
484
|
-
recipientAddress: z.string(),
|
|
485
|
-
amount: z.number(),
|
|
486
|
-
token: z.string(),
|
|
487
|
-
id: z.number().int().optional(),
|
|
488
|
-
proposalId: z.number().int().optional(),
|
|
489
|
-
order: z.number().int().optional(),
|
|
490
|
-
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
491
|
-
.optional(),
|
|
492
|
-
updated: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
493
|
-
.optional(),
|
|
494
|
-
});
|
|
495
|
-
|
|
496
|
-
/** @internal */
|
|
497
|
-
export type TreasurySpendAction$Outbound = {
|
|
498
|
-
actionType: "treasury_spend";
|
|
499
|
-
recipientAddress: string;
|
|
500
|
-
amount: number;
|
|
501
|
-
token: string;
|
|
502
|
-
id?: number | undefined;
|
|
503
|
-
proposalId?: number | undefined;
|
|
504
|
-
order?: number | undefined;
|
|
505
|
-
created?: string | undefined;
|
|
506
|
-
updated?: string | undefined;
|
|
104
|
+
amount?: number | undefined;
|
|
105
|
+
token?: string | undefined;
|
|
106
|
+
action?: string | undefined;
|
|
107
|
+
tokenAmount?: number | undefined;
|
|
108
|
+
usdcAmount?: number | undefined;
|
|
109
|
+
uri?: string | undefined;
|
|
507
110
|
};
|
|
508
111
|
|
|
509
112
|
/** @internal */
|
|
510
|
-
export const
|
|
511
|
-
|
|
113
|
+
export const ProposalAction$outboundSchema: z.ZodType<
|
|
114
|
+
ProposalAction$Outbound,
|
|
512
115
|
z.ZodTypeDef,
|
|
513
|
-
|
|
116
|
+
ProposalAction
|
|
514
117
|
> = z.object({
|
|
515
|
-
actionType: z.literal("treasury_spend"),
|
|
516
|
-
recipientAddress: z.string(),
|
|
517
|
-
amount: z.number(),
|
|
518
|
-
token: z.string(),
|
|
519
118
|
id: z.number().int().optional(),
|
|
520
119
|
proposalId: z.number().int().optional(),
|
|
521
120
|
order: z.number().int().optional(),
|
|
522
|
-
|
|
523
|
-
|
|
121
|
+
actionType: ActionType$outboundSchema,
|
|
122
|
+
recipientAddress: z.string().optional(),
|
|
123
|
+
amount: z.number().optional(),
|
|
124
|
+
token: z.string().optional(),
|
|
125
|
+
action: Action$outboundSchema.optional(),
|
|
126
|
+
tokenAmount: z.number().optional(),
|
|
127
|
+
usdcAmount: z.number().optional(),
|
|
128
|
+
uri: z.string().optional(),
|
|
524
129
|
});
|
|
525
130
|
|
|
526
|
-
/**
|
|
527
|
-
* @internal
|
|
528
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
529
|
-
*/
|
|
530
|
-
export namespace TreasurySpendAction$ {
|
|
531
|
-
/** @deprecated use `TreasurySpendAction$inboundSchema` instead. */
|
|
532
|
-
export const inboundSchema = TreasurySpendAction$inboundSchema;
|
|
533
|
-
/** @deprecated use `TreasurySpendAction$outboundSchema` instead. */
|
|
534
|
-
export const outboundSchema = TreasurySpendAction$outboundSchema;
|
|
535
|
-
/** @deprecated use `TreasurySpendAction$Outbound` instead. */
|
|
536
|
-
export type Outbound = TreasurySpendAction$Outbound;
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
export function treasurySpendActionToJSON(
|
|
540
|
-
treasurySpendAction: TreasurySpendAction,
|
|
541
|
-
): string {
|
|
542
|
-
return JSON.stringify(
|
|
543
|
-
TreasurySpendAction$outboundSchema.parse(treasurySpendAction),
|
|
544
|
-
);
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
export function treasurySpendActionFromJSON(
|
|
548
|
-
jsonString: string,
|
|
549
|
-
): SafeParseResult<TreasurySpendAction, SDKValidationError> {
|
|
550
|
-
return safeParse(
|
|
551
|
-
jsonString,
|
|
552
|
-
(x) => TreasurySpendAction$inboundSchema.parse(JSON.parse(x)),
|
|
553
|
-
`Failed to parse 'TreasurySpendAction' from JSON`,
|
|
554
|
-
);
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
/** @internal */
|
|
558
|
-
export const ProposalAction$inboundSchema: z.ZodType<
|
|
559
|
-
ProposalAction,
|
|
560
|
-
z.ZodTypeDef,
|
|
561
|
-
unknown
|
|
562
|
-
> = z.union([
|
|
563
|
-
z.lazy(() => TreasurySpendAction$inboundSchema).and(
|
|
564
|
-
z.object({ actionType: z.literal("treasury_spend") }).transform((v) => ({
|
|
565
|
-
actionType: v.actionType,
|
|
566
|
-
})),
|
|
567
|
-
),
|
|
568
|
-
z.lazy(() => MintTokensAction$inboundSchema).and(
|
|
569
|
-
z.object({ actionType: z.literal("mint_tokens") }).transform((v) => ({
|
|
570
|
-
actionType: v.actionType,
|
|
571
|
-
})),
|
|
572
|
-
),
|
|
573
|
-
z.lazy(() => BurnTokensAction$inboundSchema).and(
|
|
574
|
-
z.object({ actionType: z.literal("burn_tokens") }).transform((v) => ({
|
|
575
|
-
actionType: v.actionType,
|
|
576
|
-
})),
|
|
577
|
-
),
|
|
578
|
-
z.lazy(() => AdjustLpAction$inboundSchema).and(
|
|
579
|
-
z.object({ actionType: z.literal("adjust_lp") }).transform((v) => ({
|
|
580
|
-
actionType: v.actionType,
|
|
581
|
-
})),
|
|
582
|
-
),
|
|
583
|
-
z.lazy(() => UpdateMetadataAction$inboundSchema).and(
|
|
584
|
-
z.object({ actionType: z.literal("update_metadata") }).transform((v) => ({
|
|
585
|
-
actionType: v.actionType,
|
|
586
|
-
})),
|
|
587
|
-
),
|
|
588
|
-
]);
|
|
589
|
-
|
|
590
|
-
/** @internal */
|
|
591
|
-
export type ProposalAction$Outbound =
|
|
592
|
-
| (TreasurySpendAction$Outbound & { actionType: "treasury_spend" })
|
|
593
|
-
| (MintTokensAction$Outbound & { actionType: "mint_tokens" })
|
|
594
|
-
| (BurnTokensAction$Outbound & { actionType: "burn_tokens" })
|
|
595
|
-
| (AdjustLpAction$Outbound & { actionType: "adjust_lp" })
|
|
596
|
-
| (UpdateMetadataAction$Outbound & { actionType: "update_metadata" });
|
|
597
|
-
|
|
598
|
-
/** @internal */
|
|
599
|
-
export const ProposalAction$outboundSchema: z.ZodType<
|
|
600
|
-
ProposalAction$Outbound,
|
|
601
|
-
z.ZodTypeDef,
|
|
602
|
-
ProposalAction
|
|
603
|
-
> = z.union([
|
|
604
|
-
z.lazy(() => TreasurySpendAction$outboundSchema).and(
|
|
605
|
-
z.object({ actionType: z.literal("treasury_spend") }).transform((v) => ({
|
|
606
|
-
actionType: v.actionType,
|
|
607
|
-
})),
|
|
608
|
-
),
|
|
609
|
-
z.lazy(() => MintTokensAction$outboundSchema).and(
|
|
610
|
-
z.object({ actionType: z.literal("mint_tokens") }).transform((v) => ({
|
|
611
|
-
actionType: v.actionType,
|
|
612
|
-
})),
|
|
613
|
-
),
|
|
614
|
-
z.lazy(() => BurnTokensAction$outboundSchema).and(
|
|
615
|
-
z.object({ actionType: z.literal("burn_tokens") }).transform((v) => ({
|
|
616
|
-
actionType: v.actionType,
|
|
617
|
-
})),
|
|
618
|
-
),
|
|
619
|
-
z.lazy(() => AdjustLpAction$outboundSchema).and(
|
|
620
|
-
z.object({ actionType: z.literal("adjust_lp") }).transform((v) => ({
|
|
621
|
-
actionType: v.actionType,
|
|
622
|
-
})),
|
|
623
|
-
),
|
|
624
|
-
z.lazy(() => UpdateMetadataAction$outboundSchema).and(
|
|
625
|
-
z.object({ actionType: z.literal("update_metadata") }).transform((v) => ({
|
|
626
|
-
actionType: v.actionType,
|
|
627
|
-
})),
|
|
628
|
-
),
|
|
629
|
-
]);
|
|
630
|
-
|
|
631
131
|
/**
|
|
632
132
|
* @internal
|
|
633
133
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
@@ -654,440 +154,3 @@ export function proposalActionFromJSON(
|
|
|
654
154
|
`Failed to parse 'ProposalAction' from JSON`,
|
|
655
155
|
);
|
|
656
156
|
}
|
|
657
|
-
|
|
658
|
-
/** @internal */
|
|
659
|
-
export const ProposalActionUpdateMetadataAction$inboundSchema: z.ZodType<
|
|
660
|
-
ProposalActionUpdateMetadataAction,
|
|
661
|
-
z.ZodTypeDef,
|
|
662
|
-
unknown
|
|
663
|
-
> = z.object({
|
|
664
|
-
actionType: z.literal("update_metadata"),
|
|
665
|
-
uri: z.string(),
|
|
666
|
-
order: z.number().int().optional(),
|
|
667
|
-
});
|
|
668
|
-
|
|
669
|
-
/** @internal */
|
|
670
|
-
export type ProposalActionUpdateMetadataAction$Outbound = {
|
|
671
|
-
actionType: "update_metadata";
|
|
672
|
-
uri: string;
|
|
673
|
-
order?: number | undefined;
|
|
674
|
-
};
|
|
675
|
-
|
|
676
|
-
/** @internal */
|
|
677
|
-
export const ProposalActionUpdateMetadataAction$outboundSchema: z.ZodType<
|
|
678
|
-
ProposalActionUpdateMetadataAction$Outbound,
|
|
679
|
-
z.ZodTypeDef,
|
|
680
|
-
ProposalActionUpdateMetadataAction
|
|
681
|
-
> = z.object({
|
|
682
|
-
actionType: z.literal("update_metadata"),
|
|
683
|
-
uri: z.string(),
|
|
684
|
-
order: z.number().int().optional(),
|
|
685
|
-
});
|
|
686
|
-
|
|
687
|
-
/**
|
|
688
|
-
* @internal
|
|
689
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
690
|
-
*/
|
|
691
|
-
export namespace ProposalActionUpdateMetadataAction$ {
|
|
692
|
-
/** @deprecated use `ProposalActionUpdateMetadataAction$inboundSchema` instead. */
|
|
693
|
-
export const inboundSchema = ProposalActionUpdateMetadataAction$inboundSchema;
|
|
694
|
-
/** @deprecated use `ProposalActionUpdateMetadataAction$outboundSchema` instead. */
|
|
695
|
-
export const outboundSchema =
|
|
696
|
-
ProposalActionUpdateMetadataAction$outboundSchema;
|
|
697
|
-
/** @deprecated use `ProposalActionUpdateMetadataAction$Outbound` instead. */
|
|
698
|
-
export type Outbound = ProposalActionUpdateMetadataAction$Outbound;
|
|
699
|
-
}
|
|
700
|
-
|
|
701
|
-
export function proposalActionUpdateMetadataActionToJSON(
|
|
702
|
-
proposalActionUpdateMetadataAction: ProposalActionUpdateMetadataAction,
|
|
703
|
-
): string {
|
|
704
|
-
return JSON.stringify(
|
|
705
|
-
ProposalActionUpdateMetadataAction$outboundSchema.parse(
|
|
706
|
-
proposalActionUpdateMetadataAction,
|
|
707
|
-
),
|
|
708
|
-
);
|
|
709
|
-
}
|
|
710
|
-
|
|
711
|
-
export function proposalActionUpdateMetadataActionFromJSON(
|
|
712
|
-
jsonString: string,
|
|
713
|
-
): SafeParseResult<ProposalActionUpdateMetadataAction, SDKValidationError> {
|
|
714
|
-
return safeParse(
|
|
715
|
-
jsonString,
|
|
716
|
-
(x) =>
|
|
717
|
-
ProposalActionUpdateMetadataAction$inboundSchema.parse(JSON.parse(x)),
|
|
718
|
-
`Failed to parse 'ProposalActionUpdateMetadataAction' from JSON`,
|
|
719
|
-
);
|
|
720
|
-
}
|
|
721
|
-
|
|
722
|
-
/** @internal */
|
|
723
|
-
export const ProposalActionAdjustLpAction$inboundSchema: z.ZodType<
|
|
724
|
-
ProposalActionAdjustLpAction,
|
|
725
|
-
z.ZodTypeDef,
|
|
726
|
-
unknown
|
|
727
|
-
> = z.object({
|
|
728
|
-
actionType: z.literal("adjust_lp"),
|
|
729
|
-
action: Action$inboundSchema,
|
|
730
|
-
tokenAmount: z.number().optional(),
|
|
731
|
-
usdcAmount: z.number().optional(),
|
|
732
|
-
order: z.number().int().optional(),
|
|
733
|
-
});
|
|
734
|
-
|
|
735
|
-
/** @internal */
|
|
736
|
-
export type ProposalActionAdjustLpAction$Outbound = {
|
|
737
|
-
actionType: "adjust_lp";
|
|
738
|
-
action: string;
|
|
739
|
-
tokenAmount?: number | undefined;
|
|
740
|
-
usdcAmount?: number | undefined;
|
|
741
|
-
order?: number | undefined;
|
|
742
|
-
};
|
|
743
|
-
|
|
744
|
-
/** @internal */
|
|
745
|
-
export const ProposalActionAdjustLpAction$outboundSchema: z.ZodType<
|
|
746
|
-
ProposalActionAdjustLpAction$Outbound,
|
|
747
|
-
z.ZodTypeDef,
|
|
748
|
-
ProposalActionAdjustLpAction
|
|
749
|
-
> = z.object({
|
|
750
|
-
actionType: z.literal("adjust_lp"),
|
|
751
|
-
action: Action$outboundSchema,
|
|
752
|
-
tokenAmount: z.number().optional(),
|
|
753
|
-
usdcAmount: z.number().optional(),
|
|
754
|
-
order: z.number().int().optional(),
|
|
755
|
-
});
|
|
756
|
-
|
|
757
|
-
/**
|
|
758
|
-
* @internal
|
|
759
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
760
|
-
*/
|
|
761
|
-
export namespace ProposalActionAdjustLpAction$ {
|
|
762
|
-
/** @deprecated use `ProposalActionAdjustLpAction$inboundSchema` instead. */
|
|
763
|
-
export const inboundSchema = ProposalActionAdjustLpAction$inboundSchema;
|
|
764
|
-
/** @deprecated use `ProposalActionAdjustLpAction$outboundSchema` instead. */
|
|
765
|
-
export const outboundSchema = ProposalActionAdjustLpAction$outboundSchema;
|
|
766
|
-
/** @deprecated use `ProposalActionAdjustLpAction$Outbound` instead. */
|
|
767
|
-
export type Outbound = ProposalActionAdjustLpAction$Outbound;
|
|
768
|
-
}
|
|
769
|
-
|
|
770
|
-
export function proposalActionAdjustLpActionToJSON(
|
|
771
|
-
proposalActionAdjustLpAction: ProposalActionAdjustLpAction,
|
|
772
|
-
): string {
|
|
773
|
-
return JSON.stringify(
|
|
774
|
-
ProposalActionAdjustLpAction$outboundSchema.parse(
|
|
775
|
-
proposalActionAdjustLpAction,
|
|
776
|
-
),
|
|
777
|
-
);
|
|
778
|
-
}
|
|
779
|
-
|
|
780
|
-
export function proposalActionAdjustLpActionFromJSON(
|
|
781
|
-
jsonString: string,
|
|
782
|
-
): SafeParseResult<ProposalActionAdjustLpAction, SDKValidationError> {
|
|
783
|
-
return safeParse(
|
|
784
|
-
jsonString,
|
|
785
|
-
(x) => ProposalActionAdjustLpAction$inboundSchema.parse(JSON.parse(x)),
|
|
786
|
-
`Failed to parse 'ProposalActionAdjustLpAction' from JSON`,
|
|
787
|
-
);
|
|
788
|
-
}
|
|
789
|
-
|
|
790
|
-
/** @internal */
|
|
791
|
-
export const ProposalActionBurnTokensAction$inboundSchema: z.ZodType<
|
|
792
|
-
ProposalActionBurnTokensAction,
|
|
793
|
-
z.ZodTypeDef,
|
|
794
|
-
unknown
|
|
795
|
-
> = z.object({
|
|
796
|
-
actionType: z.literal("burn_tokens"),
|
|
797
|
-
amount: z.number(),
|
|
798
|
-
order: z.number().int().optional(),
|
|
799
|
-
});
|
|
800
|
-
|
|
801
|
-
/** @internal */
|
|
802
|
-
export type ProposalActionBurnTokensAction$Outbound = {
|
|
803
|
-
actionType: "burn_tokens";
|
|
804
|
-
amount: number;
|
|
805
|
-
order?: number | undefined;
|
|
806
|
-
};
|
|
807
|
-
|
|
808
|
-
/** @internal */
|
|
809
|
-
export const ProposalActionBurnTokensAction$outboundSchema: z.ZodType<
|
|
810
|
-
ProposalActionBurnTokensAction$Outbound,
|
|
811
|
-
z.ZodTypeDef,
|
|
812
|
-
ProposalActionBurnTokensAction
|
|
813
|
-
> = z.object({
|
|
814
|
-
actionType: z.literal("burn_tokens"),
|
|
815
|
-
amount: z.number(),
|
|
816
|
-
order: z.number().int().optional(),
|
|
817
|
-
});
|
|
818
|
-
|
|
819
|
-
/**
|
|
820
|
-
* @internal
|
|
821
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
822
|
-
*/
|
|
823
|
-
export namespace ProposalActionBurnTokensAction$ {
|
|
824
|
-
/** @deprecated use `ProposalActionBurnTokensAction$inboundSchema` instead. */
|
|
825
|
-
export const inboundSchema = ProposalActionBurnTokensAction$inboundSchema;
|
|
826
|
-
/** @deprecated use `ProposalActionBurnTokensAction$outboundSchema` instead. */
|
|
827
|
-
export const outboundSchema = ProposalActionBurnTokensAction$outboundSchema;
|
|
828
|
-
/** @deprecated use `ProposalActionBurnTokensAction$Outbound` instead. */
|
|
829
|
-
export type Outbound = ProposalActionBurnTokensAction$Outbound;
|
|
830
|
-
}
|
|
831
|
-
|
|
832
|
-
export function proposalActionBurnTokensActionToJSON(
|
|
833
|
-
proposalActionBurnTokensAction: ProposalActionBurnTokensAction,
|
|
834
|
-
): string {
|
|
835
|
-
return JSON.stringify(
|
|
836
|
-
ProposalActionBurnTokensAction$outboundSchema.parse(
|
|
837
|
-
proposalActionBurnTokensAction,
|
|
838
|
-
),
|
|
839
|
-
);
|
|
840
|
-
}
|
|
841
|
-
|
|
842
|
-
export function proposalActionBurnTokensActionFromJSON(
|
|
843
|
-
jsonString: string,
|
|
844
|
-
): SafeParseResult<ProposalActionBurnTokensAction, SDKValidationError> {
|
|
845
|
-
return safeParse(
|
|
846
|
-
jsonString,
|
|
847
|
-
(x) => ProposalActionBurnTokensAction$inboundSchema.parse(JSON.parse(x)),
|
|
848
|
-
`Failed to parse 'ProposalActionBurnTokensAction' from JSON`,
|
|
849
|
-
);
|
|
850
|
-
}
|
|
851
|
-
|
|
852
|
-
/** @internal */
|
|
853
|
-
export const ProposalActionMintTokensAction$inboundSchema: z.ZodType<
|
|
854
|
-
ProposalActionMintTokensAction,
|
|
855
|
-
z.ZodTypeDef,
|
|
856
|
-
unknown
|
|
857
|
-
> = z.object({
|
|
858
|
-
actionType: z.literal("mint_tokens"),
|
|
859
|
-
amount: z.number(),
|
|
860
|
-
recipientAddress: z.string().optional(),
|
|
861
|
-
order: z.number().int().optional(),
|
|
862
|
-
});
|
|
863
|
-
|
|
864
|
-
/** @internal */
|
|
865
|
-
export type ProposalActionMintTokensAction$Outbound = {
|
|
866
|
-
actionType: "mint_tokens";
|
|
867
|
-
amount: number;
|
|
868
|
-
recipientAddress?: string | undefined;
|
|
869
|
-
order?: number | undefined;
|
|
870
|
-
};
|
|
871
|
-
|
|
872
|
-
/** @internal */
|
|
873
|
-
export const ProposalActionMintTokensAction$outboundSchema: z.ZodType<
|
|
874
|
-
ProposalActionMintTokensAction$Outbound,
|
|
875
|
-
z.ZodTypeDef,
|
|
876
|
-
ProposalActionMintTokensAction
|
|
877
|
-
> = z.object({
|
|
878
|
-
actionType: z.literal("mint_tokens"),
|
|
879
|
-
amount: z.number(),
|
|
880
|
-
recipientAddress: z.string().optional(),
|
|
881
|
-
order: z.number().int().optional(),
|
|
882
|
-
});
|
|
883
|
-
|
|
884
|
-
/**
|
|
885
|
-
* @internal
|
|
886
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
887
|
-
*/
|
|
888
|
-
export namespace ProposalActionMintTokensAction$ {
|
|
889
|
-
/** @deprecated use `ProposalActionMintTokensAction$inboundSchema` instead. */
|
|
890
|
-
export const inboundSchema = ProposalActionMintTokensAction$inboundSchema;
|
|
891
|
-
/** @deprecated use `ProposalActionMintTokensAction$outboundSchema` instead. */
|
|
892
|
-
export const outboundSchema = ProposalActionMintTokensAction$outboundSchema;
|
|
893
|
-
/** @deprecated use `ProposalActionMintTokensAction$Outbound` instead. */
|
|
894
|
-
export type Outbound = ProposalActionMintTokensAction$Outbound;
|
|
895
|
-
}
|
|
896
|
-
|
|
897
|
-
export function proposalActionMintTokensActionToJSON(
|
|
898
|
-
proposalActionMintTokensAction: ProposalActionMintTokensAction,
|
|
899
|
-
): string {
|
|
900
|
-
return JSON.stringify(
|
|
901
|
-
ProposalActionMintTokensAction$outboundSchema.parse(
|
|
902
|
-
proposalActionMintTokensAction,
|
|
903
|
-
),
|
|
904
|
-
);
|
|
905
|
-
}
|
|
906
|
-
|
|
907
|
-
export function proposalActionMintTokensActionFromJSON(
|
|
908
|
-
jsonString: string,
|
|
909
|
-
): SafeParseResult<ProposalActionMintTokensAction, SDKValidationError> {
|
|
910
|
-
return safeParse(
|
|
911
|
-
jsonString,
|
|
912
|
-
(x) => ProposalActionMintTokensAction$inboundSchema.parse(JSON.parse(x)),
|
|
913
|
-
`Failed to parse 'ProposalActionMintTokensAction' from JSON`,
|
|
914
|
-
);
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
/** @internal */
|
|
918
|
-
export const ProposalActionTreasurySpendAction$inboundSchema: z.ZodType<
|
|
919
|
-
ProposalActionTreasurySpendAction,
|
|
920
|
-
z.ZodTypeDef,
|
|
921
|
-
unknown
|
|
922
|
-
> = z.object({
|
|
923
|
-
actionType: z.literal("treasury_spend"),
|
|
924
|
-
recipientAddress: z.string(),
|
|
925
|
-
amount: z.number(),
|
|
926
|
-
token: z.string(),
|
|
927
|
-
order: z.number().int().optional(),
|
|
928
|
-
});
|
|
929
|
-
|
|
930
|
-
/** @internal */
|
|
931
|
-
export type ProposalActionTreasurySpendAction$Outbound = {
|
|
932
|
-
actionType: "treasury_spend";
|
|
933
|
-
recipientAddress: string;
|
|
934
|
-
amount: number;
|
|
935
|
-
token: string;
|
|
936
|
-
order?: number | undefined;
|
|
937
|
-
};
|
|
938
|
-
|
|
939
|
-
/** @internal */
|
|
940
|
-
export const ProposalActionTreasurySpendAction$outboundSchema: z.ZodType<
|
|
941
|
-
ProposalActionTreasurySpendAction$Outbound,
|
|
942
|
-
z.ZodTypeDef,
|
|
943
|
-
ProposalActionTreasurySpendAction
|
|
944
|
-
> = z.object({
|
|
945
|
-
actionType: z.literal("treasury_spend"),
|
|
946
|
-
recipientAddress: z.string(),
|
|
947
|
-
amount: z.number(),
|
|
948
|
-
token: z.string(),
|
|
949
|
-
order: z.number().int().optional(),
|
|
950
|
-
});
|
|
951
|
-
|
|
952
|
-
/**
|
|
953
|
-
* @internal
|
|
954
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
955
|
-
*/
|
|
956
|
-
export namespace ProposalActionTreasurySpendAction$ {
|
|
957
|
-
/** @deprecated use `ProposalActionTreasurySpendAction$inboundSchema` instead. */
|
|
958
|
-
export const inboundSchema = ProposalActionTreasurySpendAction$inboundSchema;
|
|
959
|
-
/** @deprecated use `ProposalActionTreasurySpendAction$outboundSchema` instead. */
|
|
960
|
-
export const outboundSchema =
|
|
961
|
-
ProposalActionTreasurySpendAction$outboundSchema;
|
|
962
|
-
/** @deprecated use `ProposalActionTreasurySpendAction$Outbound` instead. */
|
|
963
|
-
export type Outbound = ProposalActionTreasurySpendAction$Outbound;
|
|
964
|
-
}
|
|
965
|
-
|
|
966
|
-
export function proposalActionTreasurySpendActionToJSON(
|
|
967
|
-
proposalActionTreasurySpendAction: ProposalActionTreasurySpendAction,
|
|
968
|
-
): string {
|
|
969
|
-
return JSON.stringify(
|
|
970
|
-
ProposalActionTreasurySpendAction$outboundSchema.parse(
|
|
971
|
-
proposalActionTreasurySpendAction,
|
|
972
|
-
),
|
|
973
|
-
);
|
|
974
|
-
}
|
|
975
|
-
|
|
976
|
-
export function proposalActionTreasurySpendActionFromJSON(
|
|
977
|
-
jsonString: string,
|
|
978
|
-
): SafeParseResult<ProposalActionTreasurySpendAction, SDKValidationError> {
|
|
979
|
-
return safeParse(
|
|
980
|
-
jsonString,
|
|
981
|
-
(x) => ProposalActionTreasurySpendAction$inboundSchema.parse(JSON.parse(x)),
|
|
982
|
-
`Failed to parse 'ProposalActionTreasurySpendAction' from JSON`,
|
|
983
|
-
);
|
|
984
|
-
}
|
|
985
|
-
|
|
986
|
-
/** @internal */
|
|
987
|
-
export const ProposalActionRequest$inboundSchema: z.ZodType<
|
|
988
|
-
ProposalActionRequest,
|
|
989
|
-
z.ZodTypeDef,
|
|
990
|
-
unknown
|
|
991
|
-
> = z.union([
|
|
992
|
-
z.lazy(() => ProposalActionTreasurySpendAction$inboundSchema).and(
|
|
993
|
-
z.object({ actionType: z.literal("treasury_spend") }).transform((v) => ({
|
|
994
|
-
actionType: v.actionType,
|
|
995
|
-
})),
|
|
996
|
-
),
|
|
997
|
-
z.lazy(() => ProposalActionMintTokensAction$inboundSchema).and(
|
|
998
|
-
z.object({ actionType: z.literal("mint_tokens") }).transform((v) => ({
|
|
999
|
-
actionType: v.actionType,
|
|
1000
|
-
})),
|
|
1001
|
-
),
|
|
1002
|
-
z.lazy(() => ProposalActionBurnTokensAction$inboundSchema).and(
|
|
1003
|
-
z.object({ actionType: z.literal("burn_tokens") }).transform((v) => ({
|
|
1004
|
-
actionType: v.actionType,
|
|
1005
|
-
})),
|
|
1006
|
-
),
|
|
1007
|
-
z.lazy(() => ProposalActionAdjustLpAction$inboundSchema).and(
|
|
1008
|
-
z.object({ actionType: z.literal("adjust_lp") }).transform((v) => ({
|
|
1009
|
-
actionType: v.actionType,
|
|
1010
|
-
})),
|
|
1011
|
-
),
|
|
1012
|
-
z.lazy(() => ProposalActionUpdateMetadataAction$inboundSchema).and(
|
|
1013
|
-
z.object({ actionType: z.literal("update_metadata") }).transform((v) => ({
|
|
1014
|
-
actionType: v.actionType,
|
|
1015
|
-
})),
|
|
1016
|
-
),
|
|
1017
|
-
]);
|
|
1018
|
-
|
|
1019
|
-
/** @internal */
|
|
1020
|
-
export type ProposalActionRequest$Outbound =
|
|
1021
|
-
| (ProposalActionTreasurySpendAction$Outbound & {
|
|
1022
|
-
actionType: "treasury_spend";
|
|
1023
|
-
})
|
|
1024
|
-
| (ProposalActionMintTokensAction$Outbound & { actionType: "mint_tokens" })
|
|
1025
|
-
| (ProposalActionBurnTokensAction$Outbound & { actionType: "burn_tokens" })
|
|
1026
|
-
| (ProposalActionAdjustLpAction$Outbound & { actionType: "adjust_lp" })
|
|
1027
|
-
| (ProposalActionUpdateMetadataAction$Outbound & {
|
|
1028
|
-
actionType: "update_metadata";
|
|
1029
|
-
});
|
|
1030
|
-
|
|
1031
|
-
/** @internal */
|
|
1032
|
-
export const ProposalActionRequest$outboundSchema: z.ZodType<
|
|
1033
|
-
ProposalActionRequest$Outbound,
|
|
1034
|
-
z.ZodTypeDef,
|
|
1035
|
-
ProposalActionRequest
|
|
1036
|
-
> = z.union([
|
|
1037
|
-
z.lazy(() => ProposalActionTreasurySpendAction$outboundSchema).and(
|
|
1038
|
-
z.object({ actionType: z.literal("treasury_spend") }).transform((v) => ({
|
|
1039
|
-
actionType: v.actionType,
|
|
1040
|
-
})),
|
|
1041
|
-
),
|
|
1042
|
-
z.lazy(() => ProposalActionMintTokensAction$outboundSchema).and(
|
|
1043
|
-
z.object({ actionType: z.literal("mint_tokens") }).transform((v) => ({
|
|
1044
|
-
actionType: v.actionType,
|
|
1045
|
-
})),
|
|
1046
|
-
),
|
|
1047
|
-
z.lazy(() => ProposalActionBurnTokensAction$outboundSchema).and(
|
|
1048
|
-
z.object({ actionType: z.literal("burn_tokens") }).transform((v) => ({
|
|
1049
|
-
actionType: v.actionType,
|
|
1050
|
-
})),
|
|
1051
|
-
),
|
|
1052
|
-
z.lazy(() => ProposalActionAdjustLpAction$outboundSchema).and(
|
|
1053
|
-
z.object({ actionType: z.literal("adjust_lp") }).transform((v) => ({
|
|
1054
|
-
actionType: v.actionType,
|
|
1055
|
-
})),
|
|
1056
|
-
),
|
|
1057
|
-
z.lazy(() => ProposalActionUpdateMetadataAction$outboundSchema).and(
|
|
1058
|
-
z.object({ actionType: z.literal("update_metadata") }).transform((v) => ({
|
|
1059
|
-
actionType: v.actionType,
|
|
1060
|
-
})),
|
|
1061
|
-
),
|
|
1062
|
-
]);
|
|
1063
|
-
|
|
1064
|
-
/**
|
|
1065
|
-
* @internal
|
|
1066
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1067
|
-
*/
|
|
1068
|
-
export namespace ProposalActionRequest$ {
|
|
1069
|
-
/** @deprecated use `ProposalActionRequest$inboundSchema` instead. */
|
|
1070
|
-
export const inboundSchema = ProposalActionRequest$inboundSchema;
|
|
1071
|
-
/** @deprecated use `ProposalActionRequest$outboundSchema` instead. */
|
|
1072
|
-
export const outboundSchema = ProposalActionRequest$outboundSchema;
|
|
1073
|
-
/** @deprecated use `ProposalActionRequest$Outbound` instead. */
|
|
1074
|
-
export type Outbound = ProposalActionRequest$Outbound;
|
|
1075
|
-
}
|
|
1076
|
-
|
|
1077
|
-
export function proposalActionRequestToJSON(
|
|
1078
|
-
proposalActionRequest: ProposalActionRequest,
|
|
1079
|
-
): string {
|
|
1080
|
-
return JSON.stringify(
|
|
1081
|
-
ProposalActionRequest$outboundSchema.parse(proposalActionRequest),
|
|
1082
|
-
);
|
|
1083
|
-
}
|
|
1084
|
-
|
|
1085
|
-
export function proposalActionRequestFromJSON(
|
|
1086
|
-
jsonString: string,
|
|
1087
|
-
): SafeParseResult<ProposalActionRequest, SDKValidationError> {
|
|
1088
|
-
return safeParse(
|
|
1089
|
-
jsonString,
|
|
1090
|
-
(x) => ProposalActionRequest$inboundSchema.parse(JSON.parse(x)),
|
|
1091
|
-
`Failed to parse 'ProposalActionRequest' from JSON`,
|
|
1092
|
-
);
|
|
1093
|
-
}
|